For nearly two years, the leaders of Spain and the United States have clashed over issues ranging from defence spending to US policy in the Middle East.