The Cuban government allows Americans to visit their country. The restrictions on reasons for travel and where you can spend money are all American rules. So, regardless of American regulations, your US passport is valid in Cuba.