Catholic teachers vote ‘yes’ to a new enterprise agreement to end acrimonious dispute