Judge: Prisons Commissioner's policy of giving off-duty guar