(CNN) When Iowa state Sen. Matt McCoy learned Donald Trump had appointed Matthew Whitaker to be acting attorney general of the United States, he was aghast -- he believes Whitaker was behind a politically motivated prosecution that was personally "devastating" to him.

It started in 2007, when McCoy was a rising Democrat in state politics, and the state's first openly gay lawmaker. Whitaker was the US attorney for Iowa's Southern District at the time.

A grand jury indictment accused McCoy of using his elected office to try to extort $2,000 from a Des Moines home security company where McCoy was a consultant. The charges came after an elaborate undercover investigation in which the FBI had McCoy's business partner wear a recording device. McCoy demanded money he says he was owed for his consulting work.

In an interview with CNN this week, McCoy said Whitaker "certainly tried to prove that I had done something really awful when, in fact, it was a garden variety business dispute that should have been handled in small claims court, if anywhere."

The trial lasted more than a week, with prosecutors trying to prove the business partner never agreed to pay McCoy for his consulting and the defense torpedoing the partner's testimony because he couldn't recall many details and admitted he had trouble with sobriety, according to Des Moines Register articles on the trial.

Read More