The Department of Communities and Justice, which runs Corrective Services NSW, admitted policy failures led to a violent incident in prison.