TikTok and its parent company ByteDance agreed Friday to settle allegations it violated a digital child privacy law, meaning the company will fork over $400 million in its latest in its largest settlement to date.