The appointment of Michel Barnier follows weeks of intense efforts by Emmanuel Macron and his aides to bring an intense period of political turmoil to an end.