An encouraging note from Pope Francis capped an especially disorienting week on the Vatican’s stance toward gay rights.