WASHINGTON (AP) — Legislation to protect same-sex and interracial marriages crossed a major Senate hurdle Wednesday, putting Congress on track to take the historic step of ensuring that such unions are enshrined in federal law.

Twelve Republicans voted with all Democrats to move forward on the legislation, meaning a final vote could come as soon as this week, or later this month. Senate Majority Leader Chuck Schumer said the bill ensuring the unions are legally recognized under the law is chance for the Senate to “live up to its highest ideals” and protect marriage equality for all people.