Complex sentence: Patients at this facility were allowed to wander the courtyards and gardens that were full of small domestic animals, which were believed to be effective tools for socialization.
Split into simpler sentences: Patients at this facility were allowed to wander the courtyards and gardens which contained a population of small domestic animals. These were believed to be effective tools for socialization.