The final version of the new EU copyright law is agreed after three days of talks in France.