Republicans didn’t eliminate it if it was unconstitutional. In fact they’ve done next to nothing to interfere with it.
Republicans are the ones fighting in court to have it declared unconstitutional and the current Republican administration is supporting that effort.
And the voters know that.