Taxes, permits and costly policy response to technological change