The Prime Minister has responded after Donald Trump revealed the US would block the Strait of Hormuz.