Tom Wright and Darcy Swain were both sent to the sin bin, handing New Zealand the initiative in their Rugby Championship match.