Technology stocks lift S&P 500 to record high in listless session