Gay 'marriages' may get legal rights