Dimmer is controlling outlets
It would be a code violation to have a outlet connected to a dimmer, I would want to figure out where the hot is at the dimmer and connect the outlets to that then run the dimmer only to the light and that would be code compliant.