"The 'caste' column and any references to caste in undertrial and/or convicts prisoners' registers inside the prisons shall be deleted," stated one of the directions in the verdict