While technically legal due to have Israel has classified them but that classification is also illegal under Int. Laws due to no other country recognizes E. Jerusalem as part of Israel. For the cases after July 2002 they should go to the international criminal court, not sure if they could take the case but would depend on how it is filed, since Israel claims E. Jerusalem but UN does not agree.
Israeli army lifts closure on West Bank town of Qabatiyah after three days (Haaretz)
from the article: Israel stripped thousands of Jerusalem Arabs of residency in 2008