When the U.S.S.R. collapsed, Washington bet on the global spread of democratic capitalist values—and lost.