The gunman who killed 26 people at a small-town Texas church had a history of domestic violence that spanned years before the attack, and was able buy weapons because the Air Force did not submit his criminal history to the FBI as required by military rules.