It marked an extraordinary moment: The president of the United States acknowledged in a court filing that he had failed to follow basic laws about how charities should be governed. Previously, Trump had insisted the charity was run properly and the suit was a partisan sham.