Moody’s Ratings changed the outlook on General Motors’ bond ratings to positive from stable, a preliminary step toward upgrading the automaker within the next 18 months, citing improving profitability and declining cash outflows.