Enthalpy is constant when a fluid is squeezed slowly through a restriction with no heat exchange. The reason is that when some mass $M$ of fluid flows into the restriction, it brings its internal energy $U_1$ with it, and the fluid or piston behind it (whatever is pushing it along) does work $p_1 V_1$ to push it through, where $V_1$ is the volume of the mass $M$ of fluid and $p_1$ is its pressure. This same mass $M$ then emerges on the other side of the restriction and pushes back whatever fluid or piston is there, doing work $p_2 V_2$ in order to make room for the final volume $V_2$ of the fluid under discussion. It emerges with internal energy $U_2$ and by conservation of energy we must have
$$
U_1 + p_1 V_1 = U_2 + p_2 V_2
$$
assuming that no heat has flowed either in or out. There may be further effects going on, such as chemical reactions or phase changes, but these are all included in $U_1$ and $U_2$.
So you see in the case of a leak into the atmosphere, you don't need to worry about the total volume of the atmosphere. All you need to know is that the leaking gas pushing some of the atmosphere out of the way---an amount $V_2$ to be specific.
Approximations
The above assumes there is no net heat transfer into or out of each parcel of gas that leaks out (during the leaking, that is). This will be an approximation in practice. The name "Joule Thomson process" (also called "Joule Kelvin process") refers to the idealized process with no heat transfer. A real process will be some approximation to this. In the case of a leak the approximation is usually quite good if there is a reasonable amount of pressure on both sides of the leak, and it is not too slow.
If the expansion were very slow then there would be time for non-negligible heat flow. In this case, if the temperature inside and outside the pipe were initially the same then I guess the process would be isothermal. In practice it will be some sort of intermediate case with no simple description.