Stocks rally on Wall Street as technology giants rebound