Chief Justice John G. Roberts Jr. on Tuesday forcefully rejected criticism that the Supreme Court’s work had been warped by partisanship.

“We don’t go about our work in a political manner,” he told an audience of some 2,000 people at the Temple Emanu-El’s Streicker Center in Manhattan.

Asked about President Trump’s attack on a decision he said had been rendered by an “Obama judge” and a recent brief from Democratic senators that questioned the Supreme Court’s legitimacy, Chief Justice Roberts said he had no objection to criticism of the court.

“We probably do a better job criticizing ourselves in our dissents than anybody else could,” he said.

But he added that the outside criticism did not affect the court’s independence. “A lot of the criticism is based on a misperception,” he said.

People often note that the court is made up of five Republican appointees and four Democratic ones, he said, and they expect predictable 5-to-4 decisions along those lines.