The French parliament has given final approval to a bill extending the state of emergency aimed at stopping riots by mostly North African youths .