French MPs pass controversial law that restricts images of police