More statehouses are wading into the contentious debate over the participation of transgender athletes in men’s and women’s sports.

In recent weeks, Republican legislators in at least five states have drafted measures aimed at preventing athletes from competing in categories different than their biological sex. Lawmakers say they are specifically concerned about female athletes facing unfair competition.

The...