Trump benefited from narrow gains among both men and women, with Harris modestly underperforming compared with Biden in 2020.