The conservative Supreme Court dealt a significant blow to President Donald Trump’s immigration agenda Tuesday, ruling that his administration could not use an executive order to end birthright citizenship for hundreds of thousands of babies born on US soil every year.

Though not unexpected, the decision is a huge loss for a president who ran for a second White House term in part on ending “birth tourism” and whose administration has been defined by a push to crackdown on illegal and legal immigration. And yet, the decision was not as fulsome a rejection of Trump’s effort as had been widely predicted.

Several conservatives broke from the majority — a division that Trump has already sought to exploit.

The 6-3 decision was arguably the most anticipated of a Trump-heavy Supreme Court term in which the president has suffered a number of high-profile losses, including on tariffs and independence at the Federal Reserve — but also a number of notable wins.

Here are the key takeaways from the court’s historic decision on birthright citizenship.