Housing benefit will be kept in place for all those living in supported housing, the government has announced.