Judge hears case over Montana rule blocking trans residents from changing sex on birth certificate