why the United States was at odds with Spain , Britain, and France at various times towards the end of the eighteenth century.