Nazi judges in Germany did their jobs by sending people, political dissenters, to concentration camps so they could be turned into soap or lamp shades. The judges were only up holding the law and "doing their job". The question is: was the law just? I think not. Just because a corrupt system claims a law is on the books doesn't not mean it has moral authority.
The justice system in our country is nearing the same level of corruption.
Exactly. One need only read the history of how the Roe V. Wade came about to realise that courts and judges are not the ultimate arbitors of moral authority, nor is every "law" just. Slavery was once permitted by law.