Rangers chairman Dave King has confirmed that the club will repay a £5m loan to Mike Ashley's Sports Direct.