The solution is really simple. Hold every San Francisco councilman and politician criminally and financially responsible for everything an illegal alien does within the city limits of San Francisco.
If an illegal robs the bank for $10,000, every politician that has made San Francisco a sanctuary city will owe the bank $10,000. Each.
If an illegal murders someone, that representative will ALSO stand trial right next to the illegal for murder.