candidate: The Federalists strongly opposed the purchase , favoring close relations with Britain over closer ties to Napoleon , and were concerned that the United States had paid a large sum of money just to declare war on Spain .