Many of Mr. Trump’s remarks would have seriously damaged other candidates, but he has remained popular in spite of accusations of racism and graft.