The Vatican has abruptly ended its takeover of the main leadership group of American nuns two years earlier than expected, allowing Pope Francis to put to rest a confrontation started by his predecessor that created an uproar among American Catholics who had rallied to the sisters’ defense.

Anticipating a visit by Francis to the United States in the fall, the Vatican and the American bishops were eager to resolve an episode that was seen by many Catholics as a vexing and unjust inquisition of the sisters who ran the church’s schools, hospitals and charities.

Under the previous pope, Benedict XVI, the Vatican’s doctrinal office had appointed three bishops in 2012 to overhaul the nuns’ group, the Leadership Conference of Women Religious, out of concerns that it had hosted speakers and published materials that strayed from Catholic doctrine on such matters as the all-male priesthood, birth control and sexuality, and the centrality of Jesus to the faith.

But Francis has shown in his two-year papacy that he is less interested in having the church police doctrinal boundaries than in demonstrating mercy and love for the poor and vulnerable — the very work that most of the women’s religious orders under investigation have long been engaged in.