The government forced through the controversial digital economy bill with the aid of the Conservative party last night, attaining a crucial third reading – which means it will get royal assent and become law – after just two hours of debate in the Commons.

However it was forced to drop clause 43 of the bill, a proposal on orphan works which had been opposed by photographers. They welcomed the news: "The UK government wanted to introduce a law to allow anyone to use your photographs commercially, or in ways you might not like, without asking you first. They have failed," said the site set up to oppose the proposals.

But despite opposition from the Liberal Democrats and a number of Labour MPs who spoke up against measures contained in the bill and put down a number of proposed amendments, the government easily won two votes to determine the content of the bill and its passage through the committee stage without making any changes it had not already agreed.

Tom Watson, the former Cabinet Office minister who resigned in mid-2009, voted against the government for the first time in the final vote to take the bill to a third reading. However the vote was overwhelmingly in the government's favour, which it won by 189 votes to 47.

Earlier the government removed its proposed clause 18, which could have given it sweeping powers to block sites, but replaced it with an amendment to clause 8 of the bill. The new clause allows the secretary of state for business to order the blocking of "a location on the internet which the court is satisfied has been, is being or is likely to be used for or in connection with an activity that infringes copyright".

The Liberal Democrat MP John Hemming protested that this could mean the blocking of the whistleblower site Wikileaks, which carries only copyrighted work. Stephen Timms for the government said that it would not want to see the clause used to restrict freedom of speech – but gave no assurance that sites like Wikileaks would not be blocked.

Don Foster, the Liberal Democrats' spokesman for culture, media and sport, protested that the clause was too wide-ranging: "it could apply to Google," he complained, adding that its inclusion of the phrase about "likely to be used" meant that a site could be blocked on its assumed intentions rather than its actions.

The Lib Dem opposition to that amendment prompted the first vote - known as a division – on the bill, but the Labour and Conservative whips pushed it through, winning it by 197 votes to 40. The next 42 clauses of the bill were then considered in five minutes.

Numerous MPs complained that the bill was too important and its ramifications too great for it to be pushed through in this "wash-up" period in which bills are not given the usual detailed examination.

However the government declined to yield – although it had already done a deal with the Tories which meant that a number of its provisions, including clause 43 and the creation of independent local news consortia, would not be part of the bill.