Following an earlier advance driven by another solid outlook for artificial-intelligence demand, the S&P 500 fell about 1%