But Poland was one of those that objected on the grounds that it could pave the way to internet censorship.
EU sources say that five other countries also opposed the rules – Italy, Finland, Sweden, Luxembourg and the Netherlands – while Belgium, Estonia and Slovenia abstained.
Google had led lobbying efforts against the law’s introduction.
At one point it had featured pop-up notices on its YouTube video-streaming service warning that the effort could have “unintended consequences”, including the blocking of some of its clips to EU-based members.
In particular, there was concern that memes featuring clips from TV shows and films could no longer be shared. However, tweaks to the law subsequently made an exception for content used for the “purposes of quotation, criticism, review, caricature, parody and pastiche”.
Even so, there is still a concern that smaller sites will struggle to track down and pay copyright holders or to develop content filters that automatically block suspect material.
Another controversial rule – which says that search engines and social media providers will have to pay news publishers to feature snippets of their content – also remains.