A charity food pantry that was run out of a suburban carport but faced closure following a council ban has been rescued by a businessman's gift of new premises.