Senators voted 50-49 against limiting the US president’s war powers against Iran, defeating Democrats’ seventh attempt.