Embodied LLM Agents Learn to Cooperate in Organized Teams