Closing a two-week round of talks in Marrakesh, dominated by Donald Trump’s threat to withdraw the US from the pact, conference president Salaheddine Mezouar brought down the gavel, passing a document in which parties agree to meet again in 2017 to “review progress”.