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.
Explanation:
After the United States Civil War, state governments that had been part of the Confederacy tried to limit the voting rights of black citizens and prevent contact between black and white citizens in public places.