For years, Muslim nations like Egypt and Jordan have distanced themselves from Gaza, and the displaced Palestinians have struggled to find refuge.