But the ICJ stopped short of calling for an immediate ceasefire