That amendment would have allowed the State Department to transfer appropriated Overseas Contingency Operations funds for operations in Iraq, to other areas where security concerns are greater, such as Beirut, Lebanon and Harare, Zimbabwe.

The legislation came after four Americans were killed at the U.S. Consulate in Benghazi, Libya, on Sept. 11, 2012. U.S. Ambassador to Libya, Chris Stevens, was among those killed. 

After the attack, the State Department conducted an accountability review and found that security at other overseas posts was lacking as well, which is why the funds needed to be used in more dangerous areas.

The Improve Security of Foreign Embassies Act, S. 227, now heads to the House for further action.