Here's the relevant law, from the webpage of Senator Patrick Leahy:
Coups d'Etat
Sec. 7008. None of the funds appropriated or otherwise made available pursuant to titles III through VI of this Act shall be obligated or expended to finance directly any assistance to the government of any country whose duly elected head of government is deposed by military coup d'etat or decree or, after the date of enactment of this Act, a coup d'etat or decree in which the military plays a decisive role: Provided, That assistance may be resumed to such government if the President determines and certifies to the Committees on Appropriations that subsequent to the termination of assistance a democratically elected government has taken office: Provided further, That the provisions of this section shall not apply to assistance to promote democratic elections or public participation in democratic processes: Provided further, That funds made available pursuant to the previous provisos shall be subject to the regular notification procedures of the Committees on Appropriations.
http://www.leahy.senate.gov/press/provisions-relevant-to-the-situation-in-egypt-in-the-fy12-state-department-and-foreign-operations-appropriations-law_--
Coups d'Etat
Sec. 7008. None of the funds appropriated or otherwise made available pursuant to titles III through VI of this Act shall be obligated or expended to finance directly any assistance to the government of any country whose duly elected head of government is deposed by military coup d'etat or decree or, after the date of enactment of this Act, a coup d'etat or decree in which the military plays a decisive role: Provided, That assistance may be resumed to such government if the President determines and certifies to the Committees on Appropriations that subsequent to the termination of assistance a democratically elected government has taken office: Provided further, That the provisions of this section shall not apply to assistance to promote democratic elections or public participation in democratic processes: Provided further, That funds made available pursuant to the previous provisos shall be subject to the regular notification procedures of the Committees on Appropriations.
http://www.leahy.senate.gov/press/provisions-relevant-to-the-situation-in-egypt-in-the-fy12-state-department-and-foreign-operations-appropriations-law_--