The two-month battle of wills reflected broader opposition inside the Roman Catholic Church to Francis’s efforts to modernize the Holy See and gently unravel the legacy of his conservative predecessors.