The written agreement follows a lawsuit filed by the archdiocese and a subsequent easing of restrictions.