A women's pool tournament has sparked controversy after two transgender athletes competed against each other in the final.