Many investors may be taken by surprise as lawmakers battle over government spending.