In addition, G.M. said 45,000 union workers would receive profit-sharing checks averaging $4,300, the most in the company’s history.