Everyone. They get the benefits of trade. When piracy happens every nation will participate in ending it as is necessary to protect trade. Why would you think otherwise?
It’s essentially a prisoner’s dilemma where individual countries are better off defecting.
The thing is people and countries don’t all benefit equally from buying into the existing system. It’s the same basic reason people continue to run scams and steal stuff on land etc.