The developments are likely to deepen the Middle East war’s impact on international commerce.