Gay and lesbian veterans win settlement