SAN FRANCISCO — Nvidia overcomes tariff-driven turbulence to deliver first-quarter results that eclipsed analyst projections.