Breaks for investment and research lowered the company’s payments to the U.S. government.