The move at the Rafah crossing will allow Palestinians to enter and leave the territory after nearly two years of closure.