I'm absolutely not an expert, and someone correct me if I'm wrong, but I suspect the CCP/Tiktok has no constitutional rights in the US and the President can take any action against a government controlled foreign business if there's even a hint of a national security risk. Not saying it's right it wrong, only that it's within their power.