In a 1973 sex-discrimination case (litigated by Ruth Bader Ginsburg, who was then a lawyer for the A.C.L.U.), Justice William Brennan wrote that "sex, like race, is an immutable characteristic determined solely by the accident of birth."