The Federal government isn't subject to state/local laws.
You are correct.
For example, had the California marijuana law passed earlier this month it would have still technically been illegal since federal law (and regulations) always trump state/local law.
A lot of cities pass non-binding resolutions like the above, but they have no legal standing.
See:
http://www.law.umkc.edu/faculty/proj...preemption.htm