The pope’s encyclical has sharpened a debate well underway in Catholic organizations and other churches about divestment.