The Senate was scheduled to vote at midday, and House leaders announced they would act Thursday evening, a little more than 24 hours before funding for a handful of government agencies was slated to lapse.