Senator JD Vance, the Republican vice-presidential candidate, and Sofia Nelson, his transgender classmate at Yale Law School, forged a bond that lasted a decade. In 2021, Mr. Vance’s support for an Arkansas ban on gender-affirming care for minors led to their falling out. Sofia Nelson, now a public defender in Detroit, discussed Mr. Vance’s pivot, politically and personally, with The Times.