The state law is very much affected by the second amendmant. It is not like the first amendment which says "Congress shall make no law..." It says "...shall not be infringed". It doesnt say who shall not infringe. It says shall not be infringed which means nobody can infringe it.
Then how do we ban private ownership of WMDs?