A top UN-appointed independent human rights expert has urged the Scottish Government to pass a new law offering legal protection to people based on their gender identity, including trans women.