Geoffrey Berman, the federal prosecutor ousted over the weekend by the Trump administration, recently refused to sign a letter from the Justice Department that criticized New York City’s coronavirus restrictions that affect religious institutions, a person briefed on the matter said.