For the first time, a court has ruled that a government has the legal responsibility to protect its citizens from climate change.