S&P upgrades outlook for U.S. economy to 'stable'