The U.S. Department of Justice has finalized a $400 million settlement with TikTok, resolving a landmark federal lawsuit that accused…