Court ruling could change the way treaties are enforced