Despite a rocky stock market that sent many fortunes plunging, the country’s most generous billionaires doled out more money than in each of the previous two years.