Several hundred families filed a class-action suit Friday against two Pennsylvania judges who pleaded guilty on Thursday to accepting $2.6 million in kickbacks for sending juveniles to private detention facilities.

“At the hands of two grossly corrupt judges and several conspirators, hundreds of Pennsylvania children, their families and loved ones, were victimized and their civil rights were violated,” said Michael J. Cefalo, one of the lawyers representing the families. “It’s our intent to make sure that the system rights this terrible injustice and holds those responsible accountable.”

Pennsylvania lawmakers called on Friday for hearings into the state’s juvenile justice system. And the Juvenile Law Center in Philadelphia, which blew the whistle on the judges, said it had sworn affidavits from families who said they had sought court-appointed counsel but were told that their children would have to wait weeks, sometimes months, for a lawyer. During that time, the children would have to remain in detention, the families said.

The two judges, Mark A. Ciavarella Jr. and Michael T. Conahan, pleaded guilty in Federal District Court in Scranton, Pa., to wire fraud and conspiracy to defraud the United States for taking more than $2.6 million in kickbacks to send teenagers to two privately run youth detention centers run by PA Child Care and a sister company, Western PA Child Care. Their plea agreements call for sentences of more than seven years in prison.