Holyrood law to ease the process of changing legal gender need not conflict with workings of UK-wide equalities law