The information technology sector weighed on the S&P 500, as most tech and AI-linked stocks declined.