The federal government is working with stakeholders to avert tariffs after President Trump said the US would impose 25 per cent tariffs on steel and aluminium.