Up to 7,000 foreign nationals, including Americans, are expected to be able to escape Gaza through the Rafah border crossing after weeks of waiting.