The tax filing offers new details about Mr. Trump’s charitable giving, which became the subject of intense scrutiny during his presidential campaign after news reports raised questions about whether he had followed through on pledges he made to donate money and his lack of financial support for the foundation.