The court gave the Congress two years to legislate the status of same-sex marriages. If the deadline passes with no legislation, then same-sex couples will be able to formalize their unions before a notary public, the court said.