Democrat Roy Cooper has won North Carolina's US Senate seat, flipping it from Republican control. He has pledged to work towards ending the US war against Iran.