The arrest warrants it issued for Israeli leaders left the court facing an existential threat.