President Donald Trump’s plan to save TikTok for Americans casts Oracle Corp. as the security guard for US user data and the app’s all-important algorithm.