Ministers have seen off a bill that would have made the UK’s climate and environment targets legally binding, after promising Labour backbenchers that they would have input into environmental legislation.

The deal avoids an internal row over the bill, which was introduced by the Liberal Democrat MP Roz Savage but had support from dozens of Labour MPs.

Before Friday’s debate on the legislation, ministers insisted on the removal of clauses that would have required the UK to meet the targets it agreed to at Cop and other international summits. A Labour source said the bill as it stood would have forced the government to renegotiate its international climate change agreements.