Europe has endorsed an overhaul of its two-decade old copyright rules, which will force Google and Facebook to pay publishers for the use of news summaries and make them filter out protected content.

The European Parliament backed the reforms by 348 votes to 274 after a debate that has pitted Europe’s creative industry against tech companies, internet activists and consumer groups concerned that the new rules may be too costly and block too much content.

Catherine Stihler, chief executive of the Open Knowledge Foundation, said: “This vote is a massive blow for every internet user in Europe. MEPs have rejected pleas from millions of EU citizens to save the internet, and chose instead to restrict freedom of speech and expression online.

“We now risk the creation of a more closed society at the very time we should be using digital advances to build a more open world where knowledge creates power for the many, not the few. But while this result is deeply disappointing, the forthcoming European elections provide an opportunity for candidates to stand on a platform to seek a fresh mandate to reject this censorship.”

The European Commission began reviewing the rules two years ago in a bid to protect an industry that is worth 915 billion euros ($1.03 trillion) a year, accounting for 11.65 million jobs and 6.8 percent of the EU economy.

The new rules mean that Google and other online platforms will have to sign licensing agreements with musicians, performers, authors, news publishers and journalists to use their work online. Google’s YouTube, Facebook’s Instagram and other sharing platforms will also have to install filters to prevent users from uploading copyrighted materials.

Both provisions triggered fierce lobbying from both sides.

The Commission’s digital chief for Europe Andrus Ansip welcomed the outcome, saying the reforms would improve the position of writers, journalists, singers, musicians and actors vis-a-vis the big platforms using their content.

“Today’s vote ensures the right balance between the interests of all players – users, creators, authors, press – while putting in place proportionate obligations on online platforms,” he said in a statement.

Demonstrators take part in a protest in front of the European Parliament as Members of the European Parliament debate on modificationS to EU copyright reforms in Strasbourg, France, March 26, 2019. REUTERS/Vincent Kessler

But Google said the reforms would lead to legal uncertainty and hurt Europe’s creative and digital economies. The European Consumer Organisation (BEUC) echoed the criticism.

“Consumers will have to bear the consequences of this decision. Their concerns had been voiced loud and clearly but MEPs chose to ignore them,” BEUC director general Monique Goyens said.

Firefox browser-maker Mozilla was scathing about the vote.“The EU institutions have squandered the progress made by innovators and creators to imagine new content and share it with people across the world,” its EU policy head Raegan MacDonald said. “They have handed the power back to large U.S. owned record labels, film studios and big tech.

Vast swathes of online services, not just those concerning music or news, could face unintended consequences, said Raffaella De Santis at law firm Harbottle & Lewis. “Care will need to be taken to ensure that smaller services are not disproportionately disadvantaged by measures which are in reality designed to curtail the formerly unchecked power of the tech giants,” she said.