An FBI white paper reveals how the bureau’s loose rules directly undermined San Francisco’s law and policy.