Thousands of protesters across France rallied against a new law they say will give police a "licence to kill”.