Senate clears Elections Bill 2017, removes clause barring disqualified MPs from holding party offices