By Manas Mishra and Brendan Pierson (Reuters) -AbbVie Inc has agreed to pay up to $2.37 billion to resolve thousands of U.S. lawsuits against its Allergan unit over the marketing of opioid painkillers, state officials announced on Friday. If finalized, the deal could end more than 3,000 lawsuits by state and local governments around the country. It includes settlements the drugmaker has already reached with states, including $200 million for New York. “We’ve worked hard to get the best result for Americans harmed by the opioid crisis, and it’s rewarding to take another step in the right direct…