>Section 4 The United States shall guarantee to every State in this Union a Republican Form of Government, and shall protect each of them against Invasion;
They ruled it's the federal government's job to protect borders with other nations. I imagine if it was state to state instead of nation to nation the ruling may have been different. Looks like the law was followed to the letter as written.