Alabama governor vows to sign bill that writes definitions of male and female into state law