World leaders reacted harshly to President Trump's immigration ban with Iran promising "counteraction".