Active control of polariton-enabled long-range energy transfer