There's not a great general answer, because normally the answer to your question is "they can't." Setting aside the fact that in this case the Saudi Arabian rulers are obviously horrible people who more or less deserve to have horrible things happen to them, the problem with allowing this sort of thing is that, from the outside, it looks like the United States unilaterally seizing property of a sovereign state, which is something that international law usually frowns upon. For that reason, foreign governments are normally given immunity in American courts, because upholding the system of statehood and encouraging other countries to recognize American sovereignty by reciprocity is seen as more important than whatever sense of justice would be gained.
A UN resolution vote to prevent those practices (and thus reaffirming the kind of sovereignty you describe) was voted by a huge majority but rejected by the US.
I am not sure where I stand on this issue, but USA was already rejecting the notion of sovereignty when it comes to debt defaults, I think it is logical to reject it too when it comes to terrorism.
Personally, I'm with you -- I think the Argentina cases had somewhat delicate international ramifications (traditionally, the assumption has been that international investors take their chances, and that the market would punish any country that defaulted), but even so, JASTA really does upend international law in a new and troubling way.
It's a type of law that makes lawyers salivate.