Landmark ruling rejects coal mine because of intergenerational inequity