An Australian state lawmaker and convicted rapist has resigned from his seat as colleagues were readying a vote to expel him from Parliament