He was sharply criticized for his role in providing intellectual guidance on economic matters to the military regime in Chile that engineered a coup in the early 1970s against the democratically elected president , Salvador Allende .