TikTok and the US government settled to resolve allegations that the app violated children's online privacy laws.