New Zealand lawmakers voted overwhelmingly in favor of a bill allowing same-sex marriage Wednesday, all but assuring that it will soon become law.

Lawmakers supported the bill 77 to 44 in the second of three votes needed for a bill to be approved. The second vote is typically the most crucial one. The third and final vote is likely to be little more than a formality and could be taken as early as next month.