A Southern California lawyer who lost nearly all of a $2.5 million class action recovery by investing client trust funds in the stock market has pleaded guilty to criminal charges.

Sandeep Baweja, 39, of the Baweja Law Group in Irvine, Calif., pleaded guilty on Thursday to one count of wire fraud and one count of obstruction of justice. He faces a maximum sentence of 30 years in federal prison and fines of up to $500,000.