Universal properties of population dynamics with fluctuating resources