Same-sex marriage ruling may be finalised this week