A state judge in Montana has heard arguments over policies that block transgender people from changing the sex designation on their birth certificates and driver's licenses.