But Mr. Obama responded very differently to the setbacks -- a difference that speaks to a conviction at the White House that the nation's counterterrorism policies are still basically sound, while the nation's gun laws are demonstrably not.