In Puerto Rico it was useful, in Cuba not so much. Cubans perceived the outcome as occupation and didn't want to have United States occupation in their country. Puerto-Ricans had a form of a civilian government with independence and Puerto-rican citizenship but the country belonged to US.
A two-thirds majority vote in both the House of Representatives and in the Senate is required to override a presidential veto. The exact number depends on how many representatives vote; therefore, the actual number is subject to change.