That is right, the 2d was directed at the fedgov. States and cities didn’t have to obey and didn’t.
The Supreme court has forced Washington D.C. to change its gun laws because it infringed on the 2nd Amendment. I do believe the 2nd is for all Americans.