France’s President has chosen his long-time ally to lead the government and win the support of a fractious Parliament where no party has a majority