what problems did the united states experience with spain and great britain.