Indeed , in the latter stages of the constitutional negotiations in Iraq , the talented U.S. ambassador in Baghdad , Zalmay Khalilzad , was basically acting as the Sunnis ' lawyer in dealings with the Kurds and Shiites .