The outcome was expected but underscored the persistent rift in the Democratic Caucus over the United States's role in the contentious foreign conflict.