Who said it was a deviation from the sacred timeline? Since it happened and the TVA didn’t care, it must be part of the sacred timeline.It's established that, pre-Loki (the series), the TVA pruned any deviations from the Sacred Timeline as per He Who Remains' edicts.
Coulson's resurrection would, by the TVA's rules, be a deviation from the Sacred Timeline and therefore subject to being pruned.