The vote marks the latest attempt by Democrats to reassert Congress’s constitutional authority over decisions to go to war.