What ever happened to "I'm sorry officer, I don't have it with me. I leave and go get it." ?
If you want to show "attitude" with the cops, expect a little "attitude" in return.
They could have arrested him for trespassing and let him plead "not guilty" and bring his documents to the DA and ask for a dismissal.