The $5 million settlement is the largest payout by the Department of Corrections that didn’t involve death or a terminal illness.