The 2266 emergency in which the Enterprise, her lithium crystals burned out while rescuing Harry Mudd, had to bargain for replacements with the miners of Rigel XII.
The crisis is the story of the original series episode Mudd's Women. The Enterprise chases an unregistered ship into an asteroid field and extends her shields to protect it, burning out all but one of her lithium crystals. Those beamed aboard are the trader Harry Mudd and three women, Eve, Ruth and Magda, whom he is taking to be wives for settlers.
With the last crystal failing, Kirk makes for the lithium mines of Rigel XII. Mudd contacts the three miners first and strikes a deal: the women in return for the crystals and his own freedom. The head miner, Ben Childress, refuses to supply Kirk until it is honoured.
The women's allure is revealed to come from the illegal Venus drug. Eve wins Childress over without it, the crystals are handed over and Mudd remains in custody.