The effort to help migrants avoid deportation drew criticism from political conservatives and the Church’s own members.