US stocks end lower as investors await key inflation data