Prandtl-Batchelor theorem for three-dimensional flows slowly varying in one direction and its application to vortex breakdown