This letter from the Social Security Administration to the National Center for Transgender Equality explains that gender data is optional, and should not be a basis for any adverse action against an employee. The letter recommends that employers not submit gender data to avoid any problems.