But do they not have a duty to enforce all local and state laws?
They have the power to selectively enforce what ever they want. Even if it’s not actually the law.