French court orders state to fix climate damage