Merge multiple vertices along axis
There are several addons to make this process fast, but here's a way to do it in plain Blender.
Select all the objects.  Get the 3d cursor where you want them aligned to (perhaps by cursor to selected, perhaps by typing the coordinates into the N panel's View tab 3d cursor section), and set the transform pivot point to 3d cursor - by default I believe that's the . key, though there's a dropdown for it also at the top of the 3d view.
Next, scale the objects with the modal scale operator (s by default), lock the scale to the axis you want to align on, and type 0.  They will all be snapped to the pivot point along that axis.