Nothing really changes. The Soviet Union was already on the way to failing in the 80s. The Afghan war only sped it up by a year or two. If they took Afghanistan. They would hit the hard stop of Pakistan and India. So It would not be that big a loss in the long run.