Wall Street snaps 2-day slump amid rally in tech shares, oil prices