I passed through the room and went out to the garden.

Literal

Room [object-を] passed-through [then-て] garden [to-に] went-out.

Features the compound verb 通り抜ける (pass through), combining 通る (pass) and 抜ける (go through/emerge). The を here marks the space traversed rather than a direct object, a common usage with motion verbs.