A New Zealand weightlifter will become the first transgender athlete to compete in the Olympic games.