AG Barr's shareholders have given the green light to its proposed merger with Britvic, leaving the deal set to complete by the end of this month.