The settlement stems from a lawsuit alleging Facebook developers sold user data to Cambridge Analytica, a former political consulting firm, to target people in the 2016 U.S. presidential election.