The owner of Facebook and Instagram recently came to an $18 billion legal settlement with U.S. states that is aimed at curbing children's use of social media.