Fact Check: Government officials have a duty to defy an unlawful order.
That was pretty much established at Nuremberg.
I think the Nuremberg experience goes even further. Lawful or not, government officials have a duty to defy orders which are inherently evil. Passing a law in Germany to authorize killing of Jews did not in any way justify obedience to such laws.
The movie Judgement at Nuremberg depicts the trials of some of the court judges. They were convicted of having OBEYED unjust laws.