The Senate has confirmed Karl Eikenberry as ambassador to Afghanistan.
Approval came on a voice vote early on Friday.
But confirmation of another top-level official was held up by Republican opposition. As a result, the Senate will take a test vote later this month on Christopher Hill's appointment as the Obama administration's ambassador to Iraq.
Eikenberry is an Army lieutenant general. He has said he would resign his commission after being confirmed to the ambassador's post.