It absolutely does, it can simply choose to not bomb Iran after Iran enforces regulations on its (shared with Oman) waterway.
Bombing Iran for a month because Iran fired on 4 ships that were violating its SoH rules is wildly disproportionate and optional.
This is not necessarily true. Yes the strait of hormuz is technically in their territorial waters, but it has been recognized as an international water way until recently. Every country with a port on the other side of the strait is going to lose access. This might not be a tolerable situation to those allies of ours and they also have the ability to force the war to drag on. Maybe we walk and pull out from our bases in those countries. maybe they suck it up and live with paying tolls. but maybe they bomb a port in iran and iran strikes a us base in response