Rinse in warm water. Wring, then soak clothes in about 1/2 cup of white vinegar for 5-10 minutes. Rinse again and wash normally.
Somewhere I read that the stink was from bacteria living on soap residue. Vinegar removes soap residue and probably kills the bacteria.