The country’s previous attempt to get tech companies to shelter young users failed amid heavy criticism from civil liberty groups.