The United States gave billions of dollars in aid to the wealthy European principality of Andorra, which it mistakenly assumed was a poor African country.