Oil prices surged on Thursday after ships came under attack in the Persian Gulf, and Iran’s supreme leader vowed revenge for U.S. and Israeli airstrikes.