Justices critical of TikTok’s arguments as app faces US ban