Environmental policy and macroeconomic dynamics in a new Keynesian model