Shiite religious parties moved closer to an overwhelming electoral sweep in southern Iraq and Baghdad , as the first results in contests for local governing councils showed those parties , many with ties to neighboring Iran , leading in all nine provinces that have had a substantial number of their votes counted .