A lawsuit appears to be the first challenge to the constitutionality of an executive order barring trans athletes from girls’ and women’s sports teams.