Companies are reporting higher taxable income amid a change in tax law that affects how they treat spending on research and development.