Corporate profits have been bolstered by higher prices even as some of the costs of doing business have fallen in recent months.