For years, federal lawmakers have tried to pass legislation to rein in the tech giants. The TikTok law was their first success.