US secretary of state's warning comes after he and Trump met the Iraqi PM on the sidelines of the UNGA.