It depends. If it later comes out that their nuclear material was secured by the US, this is much more acceptable - it would seriously incentivize pipeline construction by making passage through the Strait more expensive. Given that closing it is really the only lever Iran has that can put pressure on the US
at all, this attenuates that a great deal.
It’s not acceptable on its face, but there’s a lot going on in this conflict that isn’t making the news.