Australia has slammed Iran for attacking its neighbours and “inflicting economic pain” on civilians with its blockade of Middle East oil.