US stocks ended near the session lows on Tuesday as uncertainty lingered over trade talks between the US and China.