Kevin McCarthy needed Democrats' help to pass stopgap spending bill. Here's why