Federal judge sides with environmentalists to protect Gulf corals