House passes defense bill mostly along party lines with culture war measures attached