Arizona has been dogged by a lawsuit that alleged the state provides shoddy health care for prisoners.