A contentious episode on Capitol Hill spotlighted the growing frustration among Republicans who say they’ve been cut out of important national security decisions.