Transcript for US Supreme Court upholds Trump's travel ban in 5-4 ruling

The major victory for president trump. The Supreme Court at a 54 decision today upholding the president's controversial travel ban. Affecting several predominantly Muslim countries ruling that it is in the president's authority. The president at a meeting with Republican members of congress cheering his victory saying we have to be tough we have to be safe. Protesters on the steps of the High Court today tonight new reaction pouring into this ruling and is this a sign of an ideological shift on the court. ABC's Terry Moran tonight the Supreme Court. Within minutes of the ruling president trump was tweeting victory Supreme Court upholds trump travel ban why now. In the five to four ruling that sharply divided justices reflecting the same passions this trumped policy ignited from the moment he announced it during the 2016 campaign. Donald. Of Muslims entering the United States. It's like Jill countries' representatives. Can figure out what the hell is going on. It was a shocking declaration. At the Democratic Convention the Muslim father of a fallen American soldier brandished his constitution. This doctor made. Look what are the words. Look what the words liberty. And equal protection of law the traveled in the president signed just days after taking office didn't mention Muslims but targeted only Muslim countries. And the outrage was instant. Today the Supreme Court ruled on actually the third version of the travel band two others blocked by lower courts and this one. Very different in crucial ways it was issued after a world wide review of security procedures in different countries. It offers case by case waivers for some individuals people with long business relationships are close American family members for instance. Ended barred some individuals from non Muslim countries North Korea and Venezuela. All that chief Justice Roberts wrote shows that this band is a lawful national security measure. The band is expressly premised on legitimate purposes Roberts wrote preventing entry of nationals who cannot be adequately vetted. S Supreme Court ruling. Was a tremendous victory for Erica. The administration argued it was crystal clear that travel ban did not target Muslims pointing to what the president himself told David who we talk. In about a system muscle man we're talking about notes that the Muslim band but it's countries that have tremendous terror but the liberals on the court called that a sham justice Sonia Sotomayor her voice filled with fury in court today declaring. This new window dressing cannot conceal an unassailable fact the words of the president and his advisors create a strong perception. That the ban is contaminated by impermissible bias against Islam and its followers but Sotomayor was outnumbered today and president trump was handed his first major Supreme Court Frederick. Which he clearly enjoy. The final word that Supreme Court. Terry Moran joined us live tonight from the Supreme Court and Terry after today's decision was handed down senate majority leader Mitch McConnell steam tweeting out this picture McConnell. I shaking hands with president trumps picked for the court justice courses. The balance of the court was a big issue last election Terry we saw the impact of that today would this travel ban ruling. A shift on the court and really it ruling out another major issue is well. Absolutely David another five to four decision this one on abortion just to score since joining the conservatives and holding that those. Crisis pregnancy centers which try to persuade women. To carry their pregnancies to term rather than choose abortion cannot be forced. To post a notice inside their senators telling women where and how they might get abortions the court striking down that California law. Saying it violated the First Amendment right of those. Pregnancy centers.

This transcript has been automatically generated and may not be 100% accurate.