Attacks on US flagged ships are acts of war against the US, which you would think would cause hesitation on the part of the Houthi and Iran. And having more US-flagged ships helps the US maintain a logistic capability in the face of larger wars.
in this case it's pretty clearly the Houthi-let Yemeni government, which is a proxy for Iran, and all parties have been pretty vocal about it.
Meanwhile, attacks on EU vessels will likely attract sympathy for the attackers from the EU.