Politicians supported TikTok ban, but used app to win elections