What will your wife's reactions be when she realizes that she upended the kids and made them move to get more job satisfaction? How does she cope with that kind of guilt?
What will your wife's feelings be in a year or two when she is working in an unsatisfying environment with people she doesn't enjoy working with and feeling like she gave that up for kids and family? How does she deal with things that can give resentment?
Either way, you will have to deal with some challenges on this front, which will be easier to deal with in the long term? Initially, I would have picked the more fulfilling job but you mentioning the kids and everything else being in such a great situation, I might error on the side of not upending everything. But if your kids are able to make friends quickly and adapt pretty well, then maybe that isn't an issue.