Two weeks of wrangling and grandstanding at the United Nations climate change conference ended with the