The Nasdaq Composite and the S&P 500 reached fresh peaks on Wednesday, buoyed by a rally in technolo