President Donald Trump said an executive order suspending a nationwide ban on TikTok would be among his first official acts.