The Trump administration has vowed to dismantle the international court "brick by brick".