The factor that contributed to the success of some mammals during the K-Pg mass extinction event is:
The ability to regulate their body temperatures in the face of reduced sunlight and colder temperatures.
This ability allowed mammals to survive in the challenging environmental conditions that followed the extinction event, as they could maintain their body heat despite the cooler temperatures resulting from the darkened sky.