The threats to shipping in the Strait of Hormuz are complicating President Trump’s calculations about how and when to end the war.