Washington (CNN) Chief Justice John Roberts and his conservative majority upheld President Donald Trump's travel ban Tuesday, but in the process -- thanks to a heated argument with Justice Sonia Sotomayor -- finally overturned the infamous 1944 Supreme Court decision blessing internment of Japanese-Americans during World War II.

In her dissent to the majority's ruling on the travel ban , Sotomayor compared the decision to the Korematsu v. US case, saying there are "stark parallels" in the reasoning.

"As here, the exclusion order was rooted in dangerous stereotypes about a particular group's supposed inability to assimilate and desire to harm the United States," Sotomayor wrote.

The comparison triggered an angry response from Roberts, who chastised his colleague for using "rhetorical advantage" and said that Korematsu had "nothing to do with this case."

Roberts was troubled enough with the comparison, however, that he did something that no party involved in the travel ban case had expressly asked for: He announced that the Supreme Court was overruling Korematsu.

Read More