Appeal judges over-rule minister over sentencing of young murderers