The S&P 500 ended the day above bear-market territory, but the US-China trade war risks further tumult.