(AP) -- France's Senate has given final approval to a law that would punish people who download music and films illegally by cutting off their Internet connections.

The law creates what could be the world's first government agency to punish online .

The 189-14 vote Wednesday followed approval Tuesday by the lower chamber.

But the law's future is in doubt because of a European Parliament measure that would prohibit cutting off an without a court order. A final version of that measure must still be negotiated with the European Council. If finalized, the Europe-wide rule could contradict and override the French one, but that is not certain.

The entertainment industry hailed the French measure, which is opposed by advocates.

©2009 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.