The company decided to settle rather than go to trial against four states who claim the platform endangers children.