Iran is the one blocking the strait, not the US.
So if I punch somebody in the face and they respond by pulling out a gun and shooting an innocent bystander, I can be punished for murder?
That's not even remotely how moral responsibility works. People (and nations) are responsible for their own actions, not the actions of others.
And for Iran it seems "countries it opposes" is basically everyone...
Meanwhile, every other nation in the world with a navy should be putting pressure on Iran to stop blocking their ships.
Trump was certainly warned that this would be Iran's response, and started bombing anyway. Trying to absolve the US administration of this is just propaganda.