Tech stocks propel S&P 500, Nasdaq to fresh highs