to do what you are ordered or expected to do
Not everyone was happy with the plan, but most of us toed the line. Usage notes: sometimes used with a noun describing whose orders are being followed: They promised to toe the party line and vote with the leadership.