A Manhattan federal judge sentenced Michael Avenatti on Thursday to serve 30 months in federal prison for attempting a $20 million shakedown of Nike Inc. and defrauding a former client, calling the attorney’s conduct in the case “outrageous.”

The sentence, handed down by U.S. District Judge Paul G. Gardephe of the Southern District of New York, comes as Avenatti, the brash California lawyer who rose to prominence for his outspoken criticism of former President Donald Trump, is facing two pending trials in Los Angeles for allegedly swindling clients out of millions.