Activists who backed the law are now turning their attention to the rest of the European Union and passing similar laws in each of its member nations.

The plan had already been adopted in May by France’s National Assembly as part of another law, but courts annulled it on a series of technicalities. This time, it passed quickly on its own, after lawmakers fixed the issues raised by the courts.