A lawsuit challenging an Arizona law that requires a “sex change operation” before changing the gender on a birth certificate gained class-action status.