In response to questions from a priest, the Vatican’s philosophical office said on Wednesday that transgender people can serve as godparents at Roman Catholic ordinations, testimony at religious ceremonies, and baptized themselves.