Correcting the call to CourseWorkMaterials.list and using the optional arguments solved my issue
const getAllMaterials = Classroom.Courses.CourseWorkMaterials.list(courseId, { courseWorkMaterialStates: ["PUBLISHED", "DRAFT", "DELETED"] })