But this state of relative accord is now being menaced by President-elect Donald J. Trump, who brandished a rabidly anti-Mexican agenda during his campaign and once elected showed a disposition to act on the basis of his slanders.