U.S. President Donald Trump says he is willing to extend Chinese media company ByteDance's deadline to sell TikTok's U.S. operations to an American buyer.