Barack and Michelle Obama increased their giving as Mr. Obama began to run for president and book sales helped buoy their income.