Donald Trump has sanctioned the International Criminal Court (ICC) as a judge has halted his plan to slash the federal workforce.