The laws of the sea are subjugated by the laws of the land the ship is registered in.
For instance, that ship if still defined as being part of the United States, irrespective of where it is in the world. That means any infractions that occur onboard, are covered by US law. It makes no difference if the ship is in international waters or not.
Wurzel