The court also ordered this. Perhaps your hasbara blinded you. My emphasis, you seem to have trouble with certain words...
Reading the new provisional measures in an open session at the court in The Hague, ICJ Justice Nawaf Salam announced that Israel must abide by its obligations under the Genocide Convention to “immediately halt its military offensive and any other action in the Rafah governate which may inflict upon the Palestinian group in Gaza conditions of life that would bring about its physical destruction in whole and in part”.
The International Court of Justice (ICJ) on Friday issued new provisional measures that order Israel to immediately end military operations in Rafah in southern Gaza and to open the governate’s border crossing for urgent aid deliveries.
news.un.org