Bridging Mean-Field Games and Normalizing Flows with Trajectory Regularization