Switzerland is the most democratic country you can find on earth. The population has an enormous power to compell the government.
If Switzerland does too little for the environment it can not happen against the will of the population. Surely having some foreign court compell them makes them overthink their wrong choices.