US markets snap 2-day slide