Massachusetts residents can still chose "X" rather than male or female when applying for a driver's license or identification card. This option is based on state policy. It's not subject to the ban on gender-neutral IDs that President Trump has imposed for federal documents.
Blue states need to be ready to ignore federal laws and judges to stand up for the rights of minorities; period.