If the government can make all of the depositors whole, take the associated amount of capital off their balance sheet and hold onto it until it matures, thus costing the taxpayers $0, that seems mostly okay to me? There's the opportunity cost of money blah blah but total increase to the deficit would be $0 and all of these companies would be able to continue operating.
What's the point of a Federal gov / lender of last resort if they can't keep depositors in solvent banks whole?