The top United Nations court on Thursday ordered Israel to take measures to improve the humanitarian situation in Gaza.