President Donald Trump has confirmed that Microsoft is one of the U.S. companies considering the purchase of TikTok.