Government ministers agreed to cut climate commitments to clinch the deal it has emerged.