US stocks end a bumpy day slightly lower

U.S. stocks extended their three-day losing streak Tuesday, closing slightly lower after spending most of the day wavering between gains and…