The court’s order has deepened a disconnect with the U.S. over Israel’s military operation in Gaza that faces mounting international condemnation.