The 9th Circuit Court of Appeals in San Francisco upheld a lower court ruling that said the Vatican bank was immune from such a lawsuit under the 1976 Foreign Sovereign Immunities Act , which generally protects foreign countries from being sued in U.S. courts .