S&P changes US credit outlook to 'stable'