President Emmanuel Macron formally signed a new counter-terrorism law that gives prefects, police and security forces wide-ranging powers — without the need to seek prior approval from a judge — to search homes, place people under house arrest and close places of worship.