The issue is they block all non-Iranian ships, not just American ships. Basically nobody would have complained if they only blocked American ships.
https://www.bbc.com/news/articles/c79jqx1xdy9o
https://iranwire.com/en/news/152407-30-ships-passed-through-...
They likely didn't pay to move their goods through the strait.