The three largest U.S. drug distributors agreed mid-trial to pay up to $1.18 billion to settle claims by New York…