Abbott Laboratories Inc. and AbbVie Inc., the last defendants in the litigation over “low testosterone,” have reached a global settlement that resolves more than 4,000 cases.

In an order on Monday, U.S. District Judge Matthew Kennelly of the Northern District of Illinois said the “parties have entered into a confidential term sheet regarding a potential global settlement.” He stayed all cases against Abbott and AbbVie, and canceled a Thursday status hearing, “so that the parties may devote their efforts to finalizing a master settlement agreement.”