Wall Street Closes Higher as AI Gains Offset Middle East Tensions