NEW YORK — Michael Avenatti, the brash lawyer who became a ferocious critic of President Trump while representing an adult-film actress at the center of the president's hush-money scandal, was found guilty Friday of charges he sought to extort the sports apparel giant Nike.

The verdict caps a stunning downfall for the one-time presidential aspirant who, as a lawyer for Stormy Daniels, rose to national prominence and leveraged his frequent cable news appearances to antagonize Trump.

Avenatti was accused of demanding as much as $25 million from Nike while threatening to expose alleged misconduct within the company.

His case was sent to a jury Wednesday morning, after about two weeks of testimony in his federal trial. Jurors were asked to consider three charges: transmission of interstate communications with intent to extort; attempted extortion; and honest services wire fraud. They found him guilty on all counts.

High-profile attorney Michael Avenatti was charged by federal prosecutors for extortion, wire fraud and bank fraud in two separate cases on March 25. (Allie Caren/The Washington Post)

Avenatti is to be sentenced June 17. He faces a maximum of 20 years in prison on two of the three charges. The judge could give him consecutive sentences.

His lawyers indicated they intend to appeal.

“Today, a unanimous jury found Michael Avenatti guilty of misusing his client’s information in an effort to extort tens of millions of dollars,” said Geoffrey S. Berman, the U.S. attorney for the Southern District of New York. “ . . . While the defendant may have tried to hide behind legal terms and a suit and tie, the jury clearly saw the defendant’s scheme for what it was — an old-fashioned shakedown.”

Prosecutors alleged that Avenatti approached Nike last year with the demand, supposedly on behalf of a youth basketball coach he represented. Evidence presented at the trial suggested instead that Avenatti was acting on his own behalf when in March, with the NCAA basketball tournament about to start and just before Nike’s quarterly earnings call, he allegedly insisted that the company pay him and California attorney Mark Geragos millions of dollars to investigate internal wrongdoing or he would expose what he knew.

Geragos has not been charged.

“Nike was supposed to agree that day, the same day, to hire Avenatti, to give him what he wanted. No time to discuss. No explanation for what the legal claims might have been. No discussions allowed,” prosecutors said during the trial. “Pay or I go to the press.”

Avenatti, they said, was armed with a large public following, the result of his representation of Daniels, the adult-film actress who was paid to stay quiet during the 2016 presidential campaign about her claims of an affair with Trump several years ago — an allegation Trump has denied. According to the evidence presented in court, Avenatti tweeted about Nike in an effort to pressure the company.

The U.S. attorney’s office in Manhattan said that Avenatti saw the youth basketball coach, Gary Franklin, as a “meal ticket” to help dig himself out of debt. Prosecutors said that Franklin, who testified against his former lawyer, had no knowledge of Avenatti’s activities.

“He saw a way to walk out from under those debts, to walk away with millions,” Assistant U.S. Attorney Matthew Podolsky said in court, calling Avenatti’s intent “indisputable” — a claim backed by recordings of phone calls.

Defense attorneys argued that Franklin was in the know but that Nike never came to the table with an offer. Avenatti’s lawyer Howard Srebnick said in his closing argument that Avenatti “never failed in any duty to present to Mr. Franklin an offer from Nike, because none was advanced.”

Avenatti faces separate charges in New York for allegedly defrauding Daniels and other clients. He was incarcerated before the start of his trial when his bail was revoked by a judge in Los Angeles, where he is also accused of cheating clients. It was not immediately clear whether he would remain in custody in New York until the sentencing or he will be transferred to California.