The government-sponsored bankruptcies of G.M. and Chrysler , and significant reorganization at Ford on its own , have restored fiscal health to the industry , which had been reeling from overcapacity , huge health care costs and a collapse in consumer credit .