A yoke is the harness that gets put across the backs of horses or oxen so they can pull a wagon or plow. As a symbol, it’s representative of work or subservience. A horse is “broken” when it will accept the yoke without fighting.
In ancient times, when an army would win a battle, they sometimes set up a ceremonial “yoke” – for example, they might erect spears so that one is horizontal, just under head height. They would then march the defeated army under the “yoke” so they would have to bow their heads in defeat to fit under it. It was considered the ultimate humiliation for a soldier.
The phrase is sometimes even further symbolic. To say someone “passed under the yoke” or is “beneath the yoke” might generally mean they were defeated, disgraced, humbled, or disciplined.