Children’s and legal rights groups on Tuesday evening urged a California federal judge to enforce a decadesold settlement agreement governing the custody of immigrant children, saying migrant children today are being held for prolonged periods in unsafe and unsanitary “prison-like” conditions.