It is unclear whether his trip to Iraq was added after it became apparent that the government would be shut down indefinitely due to a stalemate between Mr Trump and congressional Democrats over the president’s demand for a wall along the US-Mexico border.