OTTAWA — A Canadian judge who wore a “Make America Great Again” cap into court the morning after Donald J. Trump’s election victory last year was suspended without pay and reprimanded by a disciplinary body on Tuesday.

Disciplinary hearings against judges in Canada are rare. The decision about the conduct of the judge, Justice Bernd Zabel of the Ontario Court of Justice, was the first issued by the Ontario Judicial Council since 2014.

The four-member council, which included a lay person and a lawyer, rejected Justice Zabel’s explanation that the campaign hat and comments he made about Mr. Trump in court were just jokes about an unexpected election result. But it also decided that removing him from the bench would be excessive, given his track record and the fact that he had apologized.

“What would a reasonable member of the public think upon seeing Justice Zabel enter the courtroom wearing Trump’s signature red ‘MAKE AMERICA GREAT AGAIN’ hat and state that he did so ‘in celebration of an historic event?’ ” the review body wrote. “In our view, and indeed as Justice Zabel himself now acknowledges, a reasonable member of the public would think that Justice Zabel was making a political statement and endorsing Donald Trump’s campaign.”