The Second Amendment isn't even really Federal law, nor is the rest of the Constitution. It's the supreme law that sits above Federal/state law and constrains what Federal/state laws can do.
(And the Tenth Amendment protects state laws significantly from Federal laws, where applicable.)