Australia has joined a statement condemning Donald Trump's criticism of the International Criminal Court days after several other nations issued it.