US President Donald Trump's decision to slap sanctions on the International Criminal Court, set up to rule on humanity's worst crimes, sent shock waves around the world.