France gets new cabinet as political crisis averted