Hull City have completed the signing of midfielder Tom Huddlestone from Tottenham on a three-year contract.