Can you summarize the Korematsu case?

Korematsu v United States was a Supreme Court decision that upheld the removal of citizens of Japanese descent from the West Coast of the US during WWII. The decision has been widely criticized and is often cited as one of the worst Supreme Court decisions in US history. The case was repudiated by the court in 2018. 

The case was brought by Fred Korematsu, who refused to move and challenged the order on the grounds that it violated the Fifth Amendment. 

The majority held that the need to protect the US against espionage by Japan outweighed the individual rights of Japanese-American citizens during wartime. Three dissenting justices argued that the removal was racially discriminatory.