The deal is among the largest government interventions in a U.S. company since the rescue of the auto industry after the 2008 financial crisis.