State agrees to changes for disabled at state prisons