There’s a distinction to point out here. US courts enforce contract law, but the international political system is anarchic. Contractual breach cases have a venue willing to hear their case, your examples of actions taken against nation-states by the US government do not.