TikTok employees used an internal system to gather sensitive data about U.S. users, federal officials said.