It's not ideal and causes hum at lower rpm but it does work. Did that many years until I hung a UPS up front a few days ago.
I have an inductive-rated dimmer up front which came with the previous set of fans and worked. However, those fans had a plastic frame and that inevitably failed in the hot environment. The mfg thought it was ok but it wasn't. So I replaced them with high-end Papst all-metal AC fans and those stall out between the 40% and 80% settings. Which is why I used a variac from then on.
Phil suggested it could be residual DC but I measured it with a lowpass and the UPS doesn't have a DC offset.