EPA has the authority to stop mountaintop removal coal mining, judge rules