President Emmanuel Macron defended new security legislation on Tuesday, saying Islamist militants still posed a serious threat to France as a two-year state of emergency comes to an end, reports Reuters.