PATERSON—A lawyer who defended Muslims detained after the Sept. 11 terrorist attacks was sworn in as a New Jersey Superior Court judge on Tuesday, as Gov. Chris Christie called those who criticized his nomination ignorant.

The appointment of Sohail Mohammed, 47 years old, angered some conservatives, who said they were concerned about the influence of Sharia law, an Islamic code of law.

Mr....