Advanced artificial intelligence chipmakers Nvidia Corp. and Advanced Micro Devices Inc. would have to ensure US companies get priority access to their products before China under legislation the Senate passed, a setback for the industrys efforts to block the measure.