I am not a shipping lawyer, but, assuming this happened in international waters, my guess is that there is probably already some set-in-stone maritime law in place that covers scenarios like this, and one that probably isn't modifiable by mere national governments. This is complete speculation though.