Stocks end lower Tuesday, giving back ground a day after the S&P 500 and Dow Jones Industrial Average closed at records in a rally fueled by progress toward a Covid-19 vaccine.