Court closes door on coal mine in Mpumalanga