Deal, which came close to collapse, has been criticised for paying lip service to climate crisis