People here quoting history about Palestinians selling their land for dollars, so Pakistan should stop supporting two states theory and recognize Israel. Even if their forefathers made a mistake (intentionally or unintentionally), the next 3-4 generations have suffered from it, isn't that enough or do you want them to suffer more?
Secondly, if Pakistan stops diplomatically supporting Palestine on issue of illegal occupation, would she hold a moral authority to raise her voice on illegal occupation of Indian Occupied Jammu and Kashmir?
And for economy, it can wait, morality can't; Rome was not built in a day.
As far as interests in GCC especially UAE are concerned, the only thing Pakistan needs is their markets and remittances. Though UAE authorities can't send all Pakistanis back home, they would try to force them to leave. What Pakistan has to do is to wait and watch. If CPEC goes by plan (though a couple of arab states are strongly opposing it) and exports start growing, Pakistan will not be needing them economically anymore.