The Soviets moreso than the US in the case of Afghanistan.
The country actually received substantial modernization aid from both, but eventually went through a series of coups that culminated in the Soviet invasion of the country and the rise of the mujaheddin.
https://en.wikipedia.org/wiki/Afghanistan#Barakzai_dynasty_and_British_wars
The US isn't blameless in how the country turned out, but it's a much less direct line than it is with Iran.
We also have real world examples like Alabama passing a voter ID law and then almost immediately turning around and closing DMV offices in poor, black counties, making getting an ID even more difficult for at-risk communities:
https://www.bloomberg.com/news/articles/2015-10-01/alabama-closes-dmv-offices-a-year-after-voter-id-law-kicks-in
Voter ID laws are very much about cloaking intentional disenfranchisement of legal citizens in a veil of preventing virtually non-existent voter fraud.