Writer of “The Bear” lived below the poverty line while working on the successful show