A prominent environment NGO has strongly condemned world leaders at the climate summit for failing to finalise a "legally binding" treaty and brokering a "take it or leave it" deal which it said was full of loopholes.