Why was the military opposed to gay service members for so long?