WASHINGTON -- The Senate has confirmed President Barack Obama's nominees to serve as ambassadors to Iraq and Pakistan.

By voice vote early Saturday morning, lawmakers backed the selection of Richard Olson to be U.S. envoy in Pakistan. His appointment comes as an already tenuous relationship between Islamabad and Washington has been complicated by anti-American protests in several Pakistani cities against an anti-Islam film.

The Senate also backed Robert Beecroft for the post in Iraq. The U.S. has been pressing Baghdad about reports that Iran is using Iraqi airspace to smuggle weapons into Syria. Iraq insists that the flights were delivering only humanitarian aid.

Obama picked Beecroft after racy emails doomed the choice of Brett McGurk, who withdrew his nomination in June.

Also on HuffPost:



Loading Slideshow...
  • Pakistani demonstrators throw stones toward riot police during a protest against an anti-Islam film in Islamabad, on September 21, 2012. (AAMIR QURESHI/AFP/GettyImages)

  • Pakistani Muslim demonstrators shout anti-US slogans as they attempt to reach the US embassy during a protest against an anti-Islam film in Islamabad, on September 21, 2012. (AAMIR QURESHI/AFP/GettyImages)

  • A Pakistani protester, center, pushes a burning tire as others run away to avoid tear gas fired by riot police during clashes erupted as protestors tried to approach the U.S embassy, in Islamabad, Pakistan, Friday, Sept. 21, 2012. (AP Photo/Muhammed Muheisen)

  • Pakistani protesters burn tires to block the main highway in Rawalpindi, Pakistan, on Friday, Sept. 21, 2012. (AP Photo/B.K. Bangash)

  • Pakistani protesters shout anti-U.S. slogans at a rally in Rawalpindi, Pakistan, on Friday, Sept. 21, 2012. (AP Photo/B.K. Bangash)

  • Pakistani protesters burn tires to block the main highway in Rawalpindi, Pakistan, on Friday, Sept. 21, 2012. (AP Photo/B.K. Bangash)

  • Pakistani protesters shout anti-U.S. slogans at a rally in Rawalpindi, Pakistan, on Friday, Sept. 21, 2012. (AP Photo/B.K. Bangash)

  • Pakistani demonstrators prepare to burn tyres as they block a main highway during a protest against an anti-Islam film in Rawalpindi, on September 21, 2012. (AAMIR QURESHI/AFP/GettyImages)

  • Pakistani Rangers cordon of a road linked to the entrance point of US embassy in Islamabad, on September 21, 2012. (FAROOQ NAEEM/AFP/GettyImages)

  • Pakistani Muslim demonstrators throw stones towards riot police during their attempt to reach the US embassy during a protest against an anti-Islam film in Islamabad, on September 21, 2012. (AAMIR QURESHI/AFP/GettyImages)