S&P 500, Nasdaq drop as investors weigh inflation data, tech