It's the same morphed logic that allows medical marijuana to legal in California. The same way. The only difference is the feds don't care and overstep their bounds with the state while for some wacky reason, they allow a murder to go away.

It isn't San Francisco that's fucked up. It's the federal government.