Pope's endorsement of gay civil unions shows religious communities are changing, scholar says