Prosecutors have almost complete immunity in such cases. In Washington State, a person can recoup legal costs incurred if he is found not guilty, but that is the closest that I have seen for any penalties outside of clear cut malicious prosecution.
The case seems very close to that.
It seems very close to that alright. If any lawyer in the court should know and respect the law it ought to be the prosecutor who works for the state.