Usually, when we talk about offsetting the effect on demand side, we would consider fiscal policy adopted by the government.
When the incentive to invest increases, the investment expenditure increases, and thus the aggregate demand increases. The price level will increase and the output level will also increase. This creates an inflationary gap. If the government reduces government spending in the long run, the aggregate demand decreases. The price level and the output level will restore to their original level.
Other policy like increasing tax will also be accepted.