Stock market today: S&P 500 inches higher after Tesla's China gambit in big week for markets