The Iranian effort to formalize control over the channel raised new concerns about international shipping.