TikTok said the measure was an “extraordinary intrusion on free speech rights”.