It’s not exactly money lenders in the temple, but a century-old East Village synagogue is being restored to its original glory thanks to a deal to let a developer build luxury condos on the upper floors.