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 industry’s efforts to block the measure.

The bipartisan legislation was easily approved in a vote late Thursday. It’s designed to bolster US competitiveness in cutting-edge industries and curb exports to China and other foreign adversaries, according to lead co-sponsor Senator Jim Banks, an Indiana Republican.