The right to be there, yes. But hostile posture and threatening messages to vessels flying the flag of another state IN those international waters is BAD. If the US ships had strayed into Iranian territorial waters would have been one thing, but Iranian vessels have no business threatening ANY nation's ships in INTERNATIONAL waters.
Incidentally Furball, your thread subject is misleading as the Americans never actually fired on the Iranian ships.