Learning alters neural activity to simultaneously support memory and action