The plaintiffs argued that passports limited to the sex listed on a birth certificate can spark harassment or even violence for transgender people