Forced on the retreat in its former colonies in West Africa, France has officially endorsed Morocco's illegal occupation of Western Sahara, and struck deals to partner in extracting its resources.