Justice Kennedy expresses his doubts about the law’s constitutionality and his worries about children’s rights.