The Senate has passed a bill seeking to establish the Electoral Offences Commission, including 20 years in jail for ballot box snatching.