Environmental groups are suing over a federal rule change that weakens habitat protections under the Endangered Species Act.