There has never been a treaty invalidated by the courts despite the fact that some of the enforcement powers of treaties on the books wildly exceed the Constitutionally enumerated powers of the Federal government.
That is the problem.
What do you do when the courts don’t follow the law?