Trump's charitable foundation says it's shutting down, but an ongoing investigation in New York may complicate that