Senate Majority Leader Mitch McConnell said Tuesday if a Supreme Court vacancy occurs during next year’s presidential election, he would work to confirm a nominee appointed by President Donald Trump.

That’s a move that is in sharp contrast to his decision to block President Barack Obama’s nominee to the high court following the death of Justice Antonin Scalia in February 2016.

At the time, he cited the right of the voters in the presidential election to decide whether a Democrat or a Republican would fill that opening, a move that infuriated Democrats.