Interesting work ethics here. Surely if you accept your salary, you are duty bound to do your best for your company.
If you don’t agree with company polices, you can vote with your feet.
(There are many, many directives within my company that I disagree with, but to deliberately compromise the company – no, that’s really quite unethical).