They ended them in part because the US had been attacking the ICC judges and staff by blocking their access to banks and imposing travel restrictions, and threatening to destroy the court in general. This is following the ICC issuing arrest warrants for Prime Minister Benjamin Netanyahu and former Defense Minister Yoav Gallant. And the ICC resisting US attempts to block ICC investigations into US war crimes in Afghanistan.
https://www.icc-cpi.int/news/icc-strongly-rejects-us-sanctions-against-institution