It’s a new kind of forever war for the Pentagon, one that will likely see its battles play out in the courtroom and at the ballot box, with deeply emotional implications for female troops and ripple effects that could stretch throughout American society.