Judge Stanley Chesler of the U.S. District Court for the District of New Jersey dismissed Merck’s infringement action in light of the litigants' decision to settle their differences rather than proceed toward a trial this fall.

Details of the settlement remain confidential, save that each side is covering its own costs and fees racked up over roughly 15...