A cascade of evolutionary change alters consumer-resource dynamics and ecosystem function