He could simply be less aggressive in moving money so it isn't taxed and pay this in tax.
Regardless, even though the US government accepts donations[1], they typically have to be given without restrictions[2]. So he could donate $2b (or sell off enough shares to pay $2b in taxes) but the impact on the HLS budget would probably be negligible. Making a contractual change is probably the most effective way to get NASA a second lander option (except perhaps hiring a bunch of lobbyists)
[1]: For example, https://fiscal.treasury.gov/public/gifts-to-government.html
[2]: a few very specific parts of the government actually are allowed to accept restricted gifts, but NASA is not one of them. IIRC this caused issues when they were looking at selling naming rights for launches and payloads