U.S. markets ended mixed on Thursday as concerns over AI spending and rising U.S.-Iran tensions affected investor sentiment. The S&P 500 fell 1.21%, marking its worst session since July, while the Nasdaq Composite declined 2.60%, recording its biggest daily fall since June.