Giving nature and the environment the same legal rights as humans is gaining ground as a new strategy to protect them from disaster.