TikTok is preparing to mount a legal challenge as early as Monday to President Donald Trump’s executive order prohibiting transactions with the popular short video app.