Material similar to that blamed in the Grenfell fire will be stripped from towers at the government's expense.