Setback to GJM: HC says curfew illegal