The states cannot pass laws which violate federal laws. I believe we fought this thing called "THE CIVIL WAR" to establish that states cannot do such a thing. Uh, no. The CW amendments prohibited the States from enforcing laws that violate the privileges and immunities in the Constitution, a far cry from the scope you imply.
I think defending the nation is within the scope of privileges and immunities.