A judge said TikTok Inc. should have to face California’s claims that the platform’s features are addictive and harmful to kids.