The principle of anarchy in IR still applies. Those treaties mean nothing as soon as any actor sees acting against them advanced their goals more than abiding by them.
International treaties and institutions are generally good to vertebrate and regulate the interactions between countries. But one must not forget they are make believe as they are unenforceable. So when you threaten to arrest and prosecute allies of the US outside the legal system of the US, you are declaring yourself an enemy of the US and treated as such.