The U.S. would dearly love to pick and choose which international law it will observe. The rest of the world is no longer willing to let the U.S. get away with it. From Patrick Lawrence at scheerpost.com:

ICJ South Africa v. Israel (Genocide Convention) CC-BY-SA-4.0
Half a dozen years ago I sat in the lobby lounge at the Algonquin Hotel in Manhattan talking at length with Richard Falk, the scholar, lawyer, U.N. rapporteur, and advocate of Palestinian rights. Inevitably, the conversation turned for a time to international law, a topic on which Falk has long been a recognized authority. Here is a little of what he said as we took our afternoon tea:
When international law is on the side of the geopolitical actors, then they are very serious about its relevance. When the American embassy was seized in Tehran after the Iranian Revolution, they talked about the flouting of international law as if that was the most sacred body of law that ever existed. International law is used very instrumentally. If you’re protecting private investment in Venezuela or Chile, then it’s barbaric not to uphold it. But if it’s blocking the pursuit of some kind of interventionist project, then it’s flaky or irrelevant to talk about it …
I thought about that exchange over the weekend, as I considered the International Court of Justice’s ruling last Friday that the apartheid state of Israel may be guilty of genocide against Gaza’s Palestinian population, as South Africa charges, and that the case Pretoria brought last month must proceed. Later Friday, the estimable Phyllis Bennis quoted Falk in a piece she wrote for In These Times. Falk called the decision the court’s “greatest moment,” and went on to explain, “It strengthens the claims of international law to be respected by all sovereign states—not just some.”
Consistency of thought: It does not get more admirable than this.