Stay Updated on Developing Stories

Anthony Kennedy's retirement just confirmed every Republican's dream scenario for Trump

(CNN) Anthony Kennedy's announcement of his retirement from the Supreme Court on Wednesday creates an opening for President Donald Trump to reshape the ideological makeup of the nation's highest court for decades to come, a best-case scenario for a Republican Party that only reluctantly accepted the idea of the reality-star-turned-politician as its leader.

Kennedy, who was appointed to the bench by President Ronald Reagan, was long rumored as a potential retiree -- although when he didn't announce that retirement at the close of the court's session on Wednesday morning there was some sense that perhaps all of the whispers about his future plans had been wrong.

But at 81 years old, Kennedy decided now was the right time to say goodbye. "It has been the greatest honor and privilege to serve our nation in the federal judiciary for 43 years, 30 of those years on the Supreme Court," he wrote in a letter to Trump informing the President of his decision.

It's almost impossible to calculate the impact Kennedy's retirement will have on the court and the country.

While Kennedy was a Republican appointee, he was viewed skeptically by many conservatives, who believed he hewed far too closely to the ideological center for their tastes. Kennedy wrote the ruling that legalized same-sex marriage nationwide in 2015. He voted in favor of granting habeas corpus rights to Guantanamo detainees in 2008. He opposed the execution of underage criminals on constitutional grounds in 2005. And in 1992, he upheld Roe v. Wade. (Worth noting: In his final term, Kennedy provided the swing vote in favor of a number of key conservatives priorities, including Tuesday's decision that upheld Trump's travel ban.)

The thinking among judicial watchers is that Kennedy's retirement affords Trump the chance to appoint a more consistently conservative justice in his place and, in so doing, create a very clear conservative majority consisting of Chief Justice John Roberts, Clarence Thomas, Samuel Alito, Neil Gorsuch and whoever Trump picks for the Kennedy slot. As The Washington Post's Supreme Court reporter Robert Barnes points out, Thomas, at 70 years old, is now the oldest of the conservative justices. Ruth Bader Ginsburg and Stephen Breyer, both reliable liberals on the court, are 85 and 79 respectively.

It's also difficult to overstate how important the possibility of multiple Supreme Court openings was to the grudging acceptance of Trump's candidacy by a Republican establishment that worried, at least initially, that his nomination could destroy their party for years (and maybe even decades) to come.

The shocking death of Justice Antonin Scalia in February 2016 thrust the idea of court vacancies right into the middle of the Republican primary fight. And the stakes only got higher when Senate Majority Leader Mitch McConnell refused to hold a confirmation hearing for Merrick Garland, the man outgoing President Barack Obama had nominated to fill the Scalia vacancy. (McConnell insisted the choice had such far-reaching implications that a president in his last year in office shouldn't be allowed to make the pick.)

As Trump continued to win primaries throughout that spring, doubts still lingered among Republicans about his ability to credibly challenge Hillary Clinton and, if elected, do the job of president.

Enter the court vacancy fight. (Remember: The Republican base cares about nothing more than the judiciary; it is a central animating issue for many of them.) On May 18, 2016, Trump released the names of 11 men (all were men) who he would consider for the Scalia opening if elected.

In explaining himself at the time, Trump acknowledged that "a lot of people are very worried that if I got in I would put in the wrong judges. I am going to put in the right judges. I am going to put in conservative judges."

On Wednesday, shortly after the Kennedy news broke, Trump echoed that idea: "When I was running I put down a list of 20 people. Not being a politician, people wanted to hear what my choices may be."

(Trump's initial list of 11 grew to 21 in September 2016; Gorsuch was on the second list.)

It worked. In conversation after conversation with Republican elected officials and strategists between May and November 2016, the justification always cited for backing Trump -- albeit, in many cases, reluctantly -- was that he would put conservative justices on the bench while Clinton would not. If there was a catalyst for Republicans to throw their lots in with Trump, it was the idea that he might have a chance to remake the Supreme Court in a more conservative image -- even if he was in office only for four years.

When Trump nominated Gorsuch in February 2017 -- almost a year to the date of Scalia's death -- the bet those Republicans had placed on Trump paid off -- hugely. Gorsuch was regarded and has voted as a reliable conservative, helping to maintain the court's ideological makeup.

As I wrote on the day Trump picked Gorsuch:

"When the official announcement came, it was exactly what every conservative who voted for Trump despite their doubts about him had dreamed of: a true conservative justice with the sort of pedigree (Harvard, Oxford) that will make it tough for Democrats to stand in unified opposition to the pick."

(Only three Democrats wound up voting for Gorsuch's confirmation: Heidi Heitkamp of North Dakota, Joe Donnelly of Indiana and Joe Manchin of West Virginia. All three are running for re-election in 2018 in states Trump won by double digits in 2016.)

Gorsuch, in truth, would have been enough for lots of Republicans to justify their support for the kind of, sort of Republican Trump. Only in their wildest dreams would they have considered the possibility that Trump would get an opportunity like this one -- not only to nominate another Supreme Court justice but to replace the man who had been a swing vote for decades on the court.

That dream scenario came true on Wednesday afternoon.

And Trump was clear in his comments after the Kennedy bombshell that he would be picking a name from the list he released in fall 2016.

"We have a very excellent list of great, talented, highly educated, highly intelligent, hopefully tremendous people," Trump said. "I think you see the kind of quality that we're looking at when we look at that list."

CORRECTION: This story has been updated to correct the year in which Kennedy upheld Roe v. Wade.

Outbrain