Transcript for Supreme Court justice fires back at Trump for 'Obama judge' comment

thank you. We turn to president trump and that public rebuke from the chief justice of the supreme court, John Roberts. Roberts issuing a rare and critical statement after the president attacked a federal court and singled out one of the judges as, quote, an Obama judge. White house correspondent Tara Palmeri has more from mar-a-lago in Florida. Tara, good morning. Reporter: Good morning. It was a stunning message from the leader of the high court who has typically held back from weighing in on the news of the day. Now as president trump vows to take his legal battles to supreme court, all eyes are on chief justice Roberts who could be seen as a potential swing vote. Overnight, chief justice John Roberts standing up to president trump after the president lashed out at an Obama appointed judge on the ninth circuit judge for temporarily blocking his order to curb asylum seekers. I'll put in a major complaint because you cannot win if you're us, a case in the ninth circuit, and I think it's a disgrace. This was an Obama judge, and I'll tell you what, it's not going to happen like this anymore. Reporter: Roberts who was appointed to the supreme court by president George W. Bush in 2005 speaking out in a rare rebuke releasing a statement saying, quote, we do not have Obama judges or trump judges, bush judges or Clinton judges. What we have is an extraordinary group of dedicated judges doing their level best to do equal right to those appearing before them but the president not letting it end there firing back, sorry, chief justice John Roberts, but you doive deed have Obama judges, and they have a much different point of view than the people who are charged with the safety of our country. It's not the first time the men have come head to head. As a candidate the now president not holding back about the judge leading the highest court. Justice Roberts turned out to be an absolute disaster. He turned out to be an absolute disaster because he gave us Obamacare. Reporter: President trump says he'll fight the ruling on the ban all the way to the supreme court where he'll likely need the vote of justice Roberts. Paula. Just a stunning war of word, Tara, thanks for your reporting.

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