A neonatal unit in the North East has been saved by new vital funding after facing an uncertain future due to financial difficulties.