Millions of pounds loaned to support new housing in Harrogate