Stocks swung on Wall Street amid pressure from the highest bond yields in almost two decades and another rise in crude oil prices.