Most courts try to limit the scope of their rulings as much as possible though. If the case before them only concerned the question of race/ethnicity, and the issue of gender or sex never came up, then Kavanaugh could probably find enough wiggle room to justify joining the other conservative judges and striking it down.