A £24m loan will help bring the bonded warehouse and engine shed back into use as well as providing 276 new homes on site