Both things can be correct if you believe the law in question is bad. The Jefferson quote comes to mind:
"If a law is unjust, a man is not only right to disobey it, he is obligated to do so."
"If a law is unjust, a man is not only right to disobey it, he is obligated to do so."
>> If a law is unjust
To me those seem like very different things. I'd bet Jefferson was talking about laws that severely impact people's lives (slavery, torture, things we would consider human rights breaches) and not pretty innocuous things like taxi regulations.
In this case, the drivers were already breaking the law (opinions on the righteousness of the law notwithstanding), and law enforcement was seeking to apprehend, not entrap.
Disclaimer: IANAL.