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."