An Air New Zealand flight was delayed after an air conditioning issue left passengers stuck on board in uncomfortable conditions for more than an hour.