Michael Avenatti ordered by judge to hand over $4.85 million in back pay to attorney at his former law firm