An Israeli court extended the detention of Abu Safia nearly two years after Israel's army detained him.