Teva and Barr settle patent dispute