China has slapped tariffs on US$3bn of American imports in retaliation for President Donald Trump's measures on steel and aluminium shipments.