The International Court of Justice has ruled that Israel, as an occupying power, must ensure food, water, fuel and medical access in Gaza.