‘They are often victims themselves with complex mental health and emotional needs,’ says justice minister explaining ruling