Delight as cash set to save ‘at risk’ museum building