if you're trying to marry someone with the same gender marker, such as if your drivers license has an M on it and you're trying to marry a man, that wouldn't be legal. But if you've changed your gender markers then legally they shouldn't be able to stop you.