The House’s Democratic leadership split over the issue in what was largely seen as a test vote ahead of the US midterm elections that will determine control of Congress.