I spent some time last night reading
various articles on this subject at the ACLU. They have a lot of info given that they've been fighting the case for a few years.
This
case background they have there hasn't been updated to reflect his victory yet, and it touches on the constitutional basis for the defense.
I don't know enough about this specific case to give an opinion on it, but I believe in equal protection for gays.