The Canadian company agreed to sell three skin-care brands, including its CeraVe line, to French cosmetics giant L’Oréal SA for $1.3 billion. It also said it would sell its Dendreon cancer business to Chinese conglomerate Sanpower for $820 million.