A federal judge threw out the fraud conviction of Chicago’s former streets and sanitation commissioner and granted him a new trial on charges of illegally rewarding political campaign workers with city jobs.