Morningstar Fellowship Church and York County reached an agreement, ending the yearslong legal battle over Heritage Tower.