US stocks end mixed