A global deal to stop the destruction of nature is hailed as a historic moment.