The ruling will have enormous impacts for transgender residents in the state.