The law will make platforms including TikTok, Facebook, Snapchat and Instagram liable for fines for systemic failures to prevent children from holding accounts.