Kamala Harris’s path to the White House has narrowed as Donald Trump was projected to win two key battlegrounds in the contest to become the next US president.