Spatially restricted immune and microbiota-driven adaptation of the gut