Two men in a lorry containing more than £40,000 worth of stolen tyres have been jailed after a "dangerous pursuit" involving police from three different forces.