To what extent did the ideals of freedom and democracy align with the U.S. domestic agenda to prevent the spread of communism?