Environmental groups to sue over feds handing endangered species duties to state