Nissan Motor Co.’s credit rating was cut a notch by Moody’s Investors Service, which cited the automaker’s weakening profitability and margins over the past two years.