I can understand your worry. I'd worry, too. But, FWIW, if I were going to fire you for gender identity discrimination, I wouldn't put it in writing, especially in an email to you. This actually sounds like they want to be an ally. Hoping for the best for you.
PS, make sure you save a hard copy of that email in case you need it for later.