The United Nations general assembly on Wednesday voted to pass a resolution asking the world’s top court to define the obligations of states to combat climate change.