A New York roller derby league has lost its bid to temporarily block a local ban on transgender female athletes.