Former Speaker Kevin McCarthy’s decision to exit Congress early will shrink the GOP’s razor-thin majority and further hobble passage of stalled spending and policy bills.