Trump's long record of ugly racist rhetoric keeps getting him in trouble at court, but he still won't apologize for it.

Trump doubled down on the racism that has hampered him in court, refusing to apologize for comments that have repeatedly hindered implementation of his Muslim ban.

At a joint press conference with Nigerian President Muhammadu Buhari Monday afternoon, Trump called on the conservative Washington Times for the first question, and was asked if he would apologize for his past comments, even just to make the court cases go away.

“I don’t think it would, number one,” Trump said. “And there’s no reason to apologize. Our immigration laws in this country are a total disaster. They’re laughed at all over the world, they’re laughed at for their stupidity. And we have to have strong immigration laws.

“So I think if I apologized, it wouldn’t make 10 cents worth of difference to them,” he said. “There is nothing to apologize for.”

Trump’s history of racist, anti-Muslim comments has been cited by multiple courts hearing the issue of his Muslim ban. Last May, for example, the 4th Circuit Court of Appeals recited a long list of statements from Trump, on the campaign trail and in office, that made clear his “anti-Muslim sentiment.”

Some have suggested that an apology by Trump might help to overcome those legal hurdles and allow his policies to prevail in court.

But even if that were the case, apologizing for his racism and bigotry would cost him much more than a defeat in court. It would cost him the support of the resentful base that put him in office and keeps his approval near 40 percent.