President Trump’s potential deal to avoid a TikTok ban is taking shape – and with several prominent US tech and investor firms set to take majority control of the China-owned app.