As yes the "no rational basis" canard. Some courts seem favorably disposed to that. The court that decided Dred Scott and the court that decided Plessy found there was no rational basis to oppose slavery or segregation. Supporters of both took great delight in proclaiming, "The courts are on our side!" "The arc of history is with us!"
We know how the story ends.