Michael Millikin, general counsel of General Motors Co., told skeptical senators on Thursday that he was “deeply sorry” for his legal department’s handling of an ignition-switch defect and was working to make sure a similar scandal doesn’t happen again.

Millikin, in his first testimony under oath before lawmakers investigating GM, said he and his colleagues at the company are “committed to setting a new industry standard for safety, quality and excellence.”