This same theme is repeated in the story of the 10 Martyrs. The Roman Governor accused the brothers of selling Yoseph for money. If their motives were in fact righteous, they should not have accepted any personal gain from their actions.
The Navi contrasted the injustices against the poor to the three most severe sins of: idolatry, adultery, and murder. Hashem [G-d] is willing to give a second chance when humankind fails due to personal failing; however, when humankind fails in the arena of social justice, there can not be a second chance. Judges are intended to do G-d’s work of ministering justice, and the administration of justice should be a primary display of Hashem’s manifest presence within society. When a judge perverts the power of his office he compromises much more than justice. He compromises G-d Himself.