What was the primary goal of american foreign policy in the nineteenth century?