The appointment of Robert W. McElroy is a signal of the pope’s priorities, two weeks before Donald J. Trump’s term begins.