What was the main agreement made with the establishment of the North Atlantic Treaty Organization (NATO)?

Ato enforce global free trade
Bto prevent global proxy wars from happening
Cthat each nation would come to one another's defense in the event of a Soviet attack
Dthat each nation would come to one another's defense in the event of an attack by the United States