While the United States has pressed hard for friendly Arab nations to upgrade their ties here , it has been wary of the new government 's ties with another neighbor , Iran , and American diplomats and military commanders said on Thursday that they were still weighing an announcement that Iraq and Iran had reached agreement in Tehran on a military cooperation pact that will include Iranian training for Iraqi military units .