Tech lifts S&P 500, Nasdaq amid inflation, China growth worries