Self-Similar Dynamical Relaxation of Dark Matter Halos in an Expanding Universe