Kamala Harris’s path to the White House narrowed as Donald Trump appeared to win a key battleground in the contest to become the next US president.