Appeals court: County also liable for sheriff's policies