(CNN) The Donald J. Trump Foundation has agreed to dissolve amid an ongoing lawsuit according to a document filed Tuesday in Manhattan Supreme Court by the New York state Attorney General's office.