Stocks Shrug Off an Early Slide and Turn Higher, Led by Tech