The judge sided with environmental groups who say the facility is endangering the Everglades and its wildlife.