Usually immune responses to commensal organisms include IL-10-producing Treg cells, inhibitory signaling of TLRs in Gut DCs, and mucus. Also, epithelial barriers help in keeping microbes away from the intestinal immune system.
In case of fetus it is usually maintained by Tregs, deletion of inflammatory cells, and probable Th1 response inhibition.