On the surface, the final U.S. Supreme Court argument of 2023 was about a female St. Louis police sergeant who claimed she was transferred from a prestigious position because of her sex.

But the justices raised concerns Wednesday that their ruling could ripple across everything from sex-specific bathrooms to affirmative action policies.