meaning of margin and mandate

Hello all,

What’s the meaning of the following sentence?

By a closemargin, the workers voted to comply with the court’s mandate against a strike.

Thanks in advance,
Mohammad

.
By a narrow difference in votes (for instance, 500 ‘yes’ votes vs ‘490’ no votes), the workers decided to agree to the court’s command not to refuse to work.
.

Thanks a lot. 8)