After a UN resolution vote, the world’s highest court will now clarify what countries must do legally to defend the environment from climate harm.