Kamala Harris courted voters angered by the Gaza war while Donald Trump doubled down on violent rhetoric as the US election campaign entered its final hours.