how did the Spanish American war and the event that followed help dictate US policy towards Cuba