This is a case of selective representation by the media, and I came to this conclusion after watching the actual Press Conference myself https://www.youtube.com/watch?v=UsU3o9fvSmM at 00:37.
Leavitt didn't boast about anything. She answered the reporter's question by calling it hypothetical, then referred to the Justice Department, explained the context regarding another judge's case, and ended with a general legal statement, "anyone who's breaking the law, or obstructing federal law enforcement officials from doing their jobs, is putting themselves at risk of being prosecuted, absolutely".
I had a feeling that I should fact check this, and I was right.