U.N. Secretary-General Antonio Guterres has visited Iraq to mark the end of the political mission established in 2003 in the wake of the U.S.