Massachusetts prison officials violated an inmate’s due process rights by placing him in solitary confinement for nearly two years, but they are entitled to qualified immunity, the First Circuit ruled, affirming a grant of summary judgment to the defendants.