Fiat Chrysler Automobiles N.V. has agreed to pay $800 million to settle class actions and governmental investigations over its “EcoDiesel” vehicles.

The deal, announced Thursday, resolved claims that Fiat Chrysler installed software in 100,000 vehicles nationwide that cheated emissions tests. It included a $307 million class action settlement and $400 million in civil penalties to federal and state regulators. A hearing for preliminary approval of the class action settlement is set for Jan. 23 in San Francisco federal court.