DETROIT — After two years of heavy legal and financial consequences, General Motors has finally turned the tide and started winning lawsuits related to the gravest safety crisis in its history.

So far this year, G.M., the nation’s largest automaker, has prevailed in three injury lawsuits, including a case dismissed on Friday, in ongoing litigation to resolve hundreds of remaining claims linked to its recall of 2.6 million small cars with faulty ignition switches.

And in a critical fourth case involving a fatal accident, G.M. left nothing to chance in its effort to move past the ignition switch scandal — and settled the case last week before it could go to trial.

It has all been part of G.M.’s methodical march to compensate victims, pay penalties and resolve claims stemming from its admission in 2014 that employees had known for a decade that faulty ignitions could suddenly cut engine power and disable airbags, often with tragic results.