The agreement caps a quarter-century of litigation against the most populous archdiocese in the United States