Dozens of federal agencies are set to see their funding lapse at midnight despite a spending deal in the Senate, since the agreement to avoid a partial shutdown will need the approval of the House, which is not expected to return to Washington until Monday.