That's not a warrant signed by a judge. I'm not judging you but I want to clarify, this was merely a request from a prosecutor, with no warrant covering it?
Sounds like a violation of 18 U.S. Code § 242. Deprivation of rights under color of law - https://www.law.cornell.edu/uscode/text/18/242
and 18 U.S. Code § 241. Conspiracy against rights - https://www.law.cornell.edu/uscode/text/18/241