Trajectory Equivalence and Weakly Invariant Distributions of Nonlinear Systems