Path-integral derivation of phase-space distributions