Egypt, Israel and the United States have agreed to allow foreigners residing in Gaza to pass through the Rafah border crossing into Egypt, under which Israel agreed to refrain from striking areas the foreigners would pass through on their way out of the Palestinian territory.