Ruling party takes lead in legislative polls