The AIM-120 was sold to Pakistan because Pakistan wanted the missile, and the U.S. wants good relations with Pakistan. It's no more complex than that. It would be insulting to Pakistan to limit arms only to those that could be used on the Taliban.
What got me going on this topic is the bold part of your quote... too many guys literally think it is a kill switch, and the jets won't even fly.
Think of the software in the F-16 as an OS, an operating system. You power the jet up, it boots, and you have a "basic installation", F-16 V5.0
You have an AI radar, HUD, algorithms to drop bombs, detect, track and engage airborne targets, navigate, etc etc. It'll fight just fine. But like any OS, you can install programs that might do something a little better than the basic OS applets. So NOTEPAD becomes MS WORD; you get more capability.
This is kind of a lame analogy, but hopefully it's understandable. Some of the software deals with super-sensitive data and operating modes. In my career, we had a vault full of material stamped SECRET/NOFORN, with NOFORN meaning "no dissemination to foreign (non U.S.) personnel. All States have material that they consider highly sensitive. What we have here is a data methodology to allow Pakistan access to critical data, without compromising that data. I hope this makes sense.