Technology, a trade-sensitive corner of the market, led the S&P 500’s gains on Monday, followed by financial stocks.