The United Nations chief warns of the waning influence of the global agreement.