French lawmakers pass bill that restricts publication of images of police