US stocks end Monday lower to give up earlier gains