Developers who refuse to pay to remove dangerous cladding will be punished, the government says.