republic party defeated