O-antigen biosynthesis mediates evolutionary trade-offs within a simple community