I think you have a valid point.
I do, however, think sanctuary cities (which are so fuzzily defined legally...) create an incentive for illegal immigration. It sends a message that one need only get through the border to make it permanent. My family immigrated legally. They should too.
If states choose not to enforce federal law, I think they need to clearly establish a legal position as to why.