French president's ex-partner wins cabinet post