Steps toward democracy in the Arab world , a crucial American goal that just months ago was cause for optimism -- with elections held in Iraq , Egypt and the Palestinian areas -- are slowing , blocked by legal maneuvers and official changes of heart throughout the Middle East .