L’Oréal has reached an agreement to sell Sanofi shares valued at $3.1 billion (€3 billion) back to the French pharmaceutical giant, according to a company statement released on Monday.