Nasdaq leads gains with technology stocks back in favor