Meta will pay up to $18 billion to settle a landmark child-safety case.