Moves to legalize divorce put the Catholic Church’s influence on society to the test