US stocks end in negative territory