The high prices came as U.S. and Israeli attacks on Iran and retaliatory strikes against Israel and U.S. military installations around the Gulf sent disruptions through the global energy supply chain.