Adaptive phenotypic plasticity stabilizes evolution in fluctuating environments