Commissioners reach settlement with sheriff's office