When NBS used current balances, they knew how to minimize and correct for thermal expansion, and how to maintain the temperature in the calibration laboratory.
The tricky bit is to measure the physical dimensions accurately.
The physics definition of the Ampere comes from the force per length L between two wires of length L with uniform spacing d carrying the same current I:
F= µ0 I2 L / (2pi d) =(2 x 10-7) x I2 L/d
Therefore, if in the thermal expansion, all dimensions of the assembly increase by the same factor, the overall change in the total force F cancels out, since the L/d ratio is constant for a uniform dilation.
Again, current balances are only used to measure current. See pp 854-855 of the 2nd edition of Physics, parts I and II, D Halliday and R Resnick, J Wiley and Sons, 1966.