Lawmakers say the new law reflects 'the lived experience of anyone who has taken a three-year-old to Target.'