High Court paves the way for same-sex marriage