If it's really about the military as you suggest then the extremely easy solution is to order service members not to use Tik Tok.
Passing a specific law to compell the sale of one specific company is arguably some sort of Bill of Attainder, which I'm sure ByteDance's lawyers will be argueing as soon as Biden's pen touches paper.
Is there some way to trick the chatgpt training bots by intentionally mislabeling data? Like can I upload some ~~furry pornography~~ tasteful erotica and label it "AP US history assignment - Civil War"?