Delegates cheered as the crucial texts were approved in overtime on Friday, following two weeks of tense negotiations at the UN summit.