The documents show how Trump used the tax code to lower his tax obligation and reveal details about foreign accounts, charitable contributions and the performance of some of his highest-profile business ventures, which had largely remained shielded from public scrutiny.