It took years of complicated negotiations and compromises - and many hoped it would prove a major breakthrough in bringing climate change under control.