Meaning: The clouds were covering the sunlight, making it dark.
Choice of Words: Clouds are in the sky, and they can block the sunlight. A blanket is something you put on your bed to keep you warm. So, the sentence means the clouds were covering the sunlight, like a blanket would cover you.