Maryland lawmakers are scrambling to address an unexpected onslaught of cases targeting the state’s juvenile justice system.