Britain's commitment to the Paris Agreement on climate change trumps government airports policy, a court has ruled.