The man who killed four people in New York City had a history of mental health issues, including two commitments to treatment initiated by Las Vegas police. But legally, he was still allowed to buy guns.