US stocks today: S&P 500, Dow gain as AI strength offsets US-Iran friction — NewsToolBar