The Endangered Species Act can work, but it’s still struggling to protect animals from the threat of extinction