“This is a welcome step towards a safer, fairer future,” said the climate campaigner who brought the legal challenge.