Slumping AI stocks and another climb in oil prices because of the Iran war are helping to halt Wall Street’s record-setting rally.