Network Rail has completed a £6 million investment to improve the reliability of the railway infrastructure through Durham on the East Coast Main Line.