Enron Corp.’s former outside law firm, Vinson & Elkins, has agreed to pay the company $30 million to settle claims of contributing to the failed energy giant’s 2001 collapse by signing off on fraudulent or shaky deals.

The firm, which once earned up to $40 million annually from Enron before the disgraced company cratered, admitted no liability in the settlement.