Moody's Investors Service is planning to upgrade General Motors credit ratings based on improvements it has shown in its finances, aided also by approval of a new agreement with the United Auto Workers union.