WASHINGTON — Dinesh D’Souza, the conservative author and filmmaker pardoned by President Trump, claimed victory on Friday over what he characterized as a political prosecution by the administration of President Barack Obama.

In terms that evidently resonated with Mr. Trump, who is aggrieved about investigations that he blames on his predecessor, Mr. D’Souza presented himself as a victim of selective justice, hounded by Mr. Obama’s attorney general, Eric H. Holder Jr., and the United States attorney in New York, Preet Bharara, because he made a movie sharply critical of Mr. Obama.

“What happened here is Obama and his team, Eric Holder, Preet Bharara in New York, these guys decided to make an example of me, and I think that the reason for this was Obama’s anger over my movie that I made about him,” Mr. D’Souza said on “Fox and Friends,” one of Mr. Trump’s favorite shows.

“And so, this was a vindictive political hit that was kind of aimed at putting me out of business, essentially making — destroying my credibility, making it impossible for me to make movies, write books, and that since has failed. But it still left a cloud over me,” he added. “I would be a lifelong felon. I would never be able to vote and never have my full rights.”