S&P upgrades U.S. outlook