Procedurally the US is closer to a EU style alliance of sovereign nations than a single one. Practically the federal government has long since overgrown it's constitutional role as the equivalent of the EU bodies but if you're looking at a US state and wondering why it's acting like a sovereign nation the answer is generally because it is one, on paper.