Israeli company Teva Pharmaceuticals has completed its $40 billion acquisition of the generics arm of rival Allergan.