Inmate which spent four many years in solitary susceptible to ‘abhorrent’ procedures: judge