A controversial gender bill which allows transgender people to self-identify has been passed by Members of the Scottish Parliament (MSP)…