US stocks end higher amid ongoing trade talks with China