In the real-life case, of course, there was no actual violence done, only violence prevented.
I almost wonder whether this officer would never have been prosecuted at all if he had gotten the informant to reveal a planned attack on the President of the US. Yes, I know what happens in a movie may not reflect reality, but does anyone here believe that if the President's life had been saved by this officer we would have heard about this matter.