IMHO there are multiple moral boundaries, and making a dark pattern like requiring an extra click to reject cookies is unlikely a hill to die on for most devs.
They might complain to their manager, even log a formal notice that they believe this feature to be breaking the law (if they are smart), but quitting a company for this specific dark pattern seems a bit unusual.