The Palestinian parliament has passed a new electoral law , removing an obstacle that had delayed elections for a new legislature .