"Solitary confinement may not have been as physically painful as a form of punishment, but when stretched out for up to nine months it was just as torturous in its own way." . . . .