A federal judge has thrown out all criminal and civil charges related to the stock options backdating scandal at Broadcom Corp. amid accusations of prosecutorial misconduct.

U.S. District Court Judge Cormac Carney of Santa Ana, Calif., dismissed with prejudice the cases against William Ruehle, the former chief financial officer of Broadcom, and Henry Nicholas, one of the company’s co-founders.