The vote against the measure was mostly along party lines, with Republicans opposing it and Democrats almost unanimously in favor.