On June 30, 2004, the Supreme Court of Israel ruled that a portion of the barrier west of Jerusalem violated the rights of Palestinians, and ordered 30 kilometers of existing and planned barrier to be rerouted.