Supreme Court has ruled Surrey Council should have considered the climate change impacts of new oil wells.