The question of who is allowed to compete as a woman has become a symbol of the wider struggle for equality and human rights.