The S&P 500 and Dow industrials ended slightly negative but well above their session lows in volatile trading on Thursday as the arrest of a Chinese technology executive fanned fears of U.S-China tensions over trade, while some beaten-up big technology and internet shares posted gains.