Paralysed inmate wins right to medical release