A bankruptcy judge decided just after midnight Saturday that Lehman Brothers can sell its investment banking and trading businesses to Barclays, the first major step to wind down the nation's fourth-largest investment bank. US Bankruptcy Judge James Peck gave his decision in a courtroom packed with lawyers at the end of an eight-hour hearing, which capped a week of financial turmoil. The deal was said to be worth $1.75 billion earlier in the week but the value was in flux after lawyers announced changes to the terms on Friday. It may now be worth closer to $1.35 billion, which includes the $960 million price tag on Lehman's Midtown Manhattan office tower. Lehman Brothers Holdings Inc. filed the biggest bankruptcy in US history Monday, after Barclays PLC declined to buy the investment bank in its entirety. The British bank will take control of Lehman units that employ about 9,000 employees in the US. “Not only is the sale a good match economically, but it will save the jobs of thousands of employees,” said Lehman lawyer Harvey Miller of Weil, Gotshal and amp; Manges. Barclays took on a potential liability of $2.5 billion to be paid as severance, in case it decides not to keep certain Lehman employees beyond the guaranteed 90 days. But observers have said Barclays' main reason for acquiring Lehman is to get its people and presence in North America, making widespread layoffs less likely. “It's unimaginable to me that they can run the business without people,” said Lehman's financial adviser, Barry Ridings, of Lazard Ltd. Barclays had little competition to land the deal. Miller said that before it filed for bankruptcy, Lehman had negotiated with just one other bidder, Bank of America Corp. BofA instead announced Monday that it would buy Merrill Lynch and amp; Co., saving it from a fate similar to Lehman's. That deal was originally valued at $50 billion. Miller said that since Lehman filed for bankruptcy, Barclays had been the only buyer to express interest in acquiring even parts of the 158-year-old investment bank. Lehman lawyers announced a number of changes to the deal before the hearing, which started at 4:30 P.M. Friday and continued well past midnight Saturday. Lehman lawyers said the value of stock Barclays will buy and liabilities it will assume has fallen since the start of the week due to market volatility. Under the new deal, Barclays will buy $47.4 billion in securities and assume $45.5 billion in liabilities. Barclays also said it would buy three additional units - Lehman Brothers Canada Inc., Argentina-based Lehman Brothers Sudamerica SA and Lehman Brothers Uruguay SA. The two South American entities are part of Lehman's money management business. Barclays is not paying extra to get the three units. There was no change to a $250 million goodwill payment and the purchase of two data centers in New Jersey.