Bill OK'd to ban ousted lawmakers from running to fill seats