Moody’s upgraded General Motors debt to investment quality on Monday as the biggest US automaker said it would buy back $3.2 billion in shares owned by the UAW union’s trust. GM said it had reached an agreement to repurchase 120 million shares of preferred…