House legislation to freeze the budgets of most Cabinet departments and fund the war in Afghanistan faces uncertain prospects as the Senate takes up the measure.