I would 100% agree if we were talking about humans.
As is, euthanasia of cats and dogs is generally considered morally acceptable, and we can reasonably predict that more cats will be euthanatized as a result of this law. So if there weren't clear evidence that declawing was inherently harmful to a pet cat, I would consider it misguided to ban the practice.