Health Secretary Neil Gray says public bodies need to respect both single-sex spaces and trans rights.