The Trump administration has warned Iraq that it will close its embassy in Baghdad if the government does not take swift and decisive action to end persistent rocket and other attacks by Iranian-backed militias and rogue armed elements on American and allied interests in the country, US, Iraqi and other officials said Monday.