Hi 牛牛! In this sentence, the "what" at the beginning is a poetic way of writing "the...that." In other words, we can rewrite the beginning of this sentence to read "The light that struggled through..." and have it mean the same thing.
I hope I've answered your question. If not, please let me know.