The deal will diversify the French beauty giant’s funding sources at a time when the industry is undergoing a slowdown.