President Joe Biden will not enforce a ban on the social media app TikTok that is set to take effect a day before he leaves office, a US official said.