A major tourism project in North Yorkshire has received a boost thanks to £22.8m loan.