A Southerner, Maj. Gen. George H. Thomas was a racist enslaver before the Civil War. But he fought for the Union because he prioritized his oath to defend the Constitution over state interests.
In the 1860’s, the Supreme Court was a ‘partisan creature’ and President Lincoln and the Republican Party remade it so that it reflected the party’s priorities.