You can also agree with law and find agency tactics bad.
Maybe I find it despicable that I can't scam you out of money if you happen to be dumb enough to let me. There are actually cutlers int he world that are "shame on you if you get scammed"
That is the entire problem when you talk about ethics at all beyond a few truths that 99% of people can agree on.
So one could argue not following any law becomes unethical -- and the only ethical thing to do is follow the law until it is changed, which puts us at a interesting juxtaposition -- that sometimes you have to be unethical to be ethical!
This will always be the hard part of making rules or laws on things that are so subjective such as ethics.
There is wide agreement about many ethical questions through. I also think that ignoring ethics question completely is easy cop out - yes one should do it no matter what job.
I don't think that law and ethics is the same. I think that following law is ethical where law species competition rules (accounting, regulation etc).
I think the more ethical stance would be to advocate for changing the law.
I don't give "ethical pass" for not following law where you merely disagree with law or find it pointless or an obstacle to more money.
There is also difference between "breaking law" and "not joining effort to enforce the law". Again, if I find the law bad it might be unethical to join effort to enforce it, but it might still be fully ethical to follow the law and unethical to break it. For example, unnecessary hygiene food regulation.
Easy to see extreme example of law to break would be anti-jew law or fugitive slave law or something like that. The point is that breaking law is ok not merely when you disagree with law, but when it forces you to break ethics. Not just when you benefit from breaking it.
I think the Uber example in particular assumes that following laws is itself essential. But opposing immigration laws and enforcement of them undercuts that axiom. I don't see how people resolve the tension there in a philosophically coherent way.
You could make a similar argument for any crime that results in prison time. Locking up murderers results directly in human misery and torn apart families. This case is far more severe: we don't allow the family to move into the prison to live with the criminal. We even separate nursing babies from their mothers.