Officials said Hank Paulson , the Treasury secretary , and Ben Bernanke , chairman of the Federal Reserve , both helped broker the deal , which was approved by a unanimous vote of the Fed board on Sunday .