The administration, which argues that the legislation would put Americans at legal risk overseas, has been lobbying so intently against the bill that some lawmakers and families of Sept. 11 victims are infuriated. In their view, the Obama administration has consistently sided with the kingdom and has thwarted their efforts to learn what they believe to be the truth about the role some Saudi officials played in the terrorist plot.

“It’s stunning to think that our government would back the Saudis over its own citizens,” said Mindy Kleinberg, whose husband died in the World Trade Center on Sept. 11 and who is part of a group of victims’ family members pushing for the legislation.

President Obama will arrive in Riyadh on Wednesday for meetings with King Salman and other Saudi officials. It is unclear whether the dispute over the Sept. 11 legislation will be on the agenda for the talks.

A spokesman for the Saudi Embassy did not respond to a message seeking comment.

Saudi officials have long denied that the kingdom had any role in the Sept. 11 plot, and the 9/11 Commission found “no evidence that the Saudi government as an institution or senior Saudi officials individually funded the organization.” But critics have noted that the commission’s narrow wording left open the possibility that less senior officials or parts of the Saudi government could have played a role. Suspicions have lingered, partly because of the conclusions of a 2002 congressional inquiry into the attacks that cited some evidence that Saudi officials living in the United States at the time had a hand in the plot.

Those conclusions, contained in 28 pages of the report, still have not been released publicly.

The dispute comes as bipartisan criticism is growing in Congress about Washington’s alliance with Saudi Arabia, for decades a crucial American ally in the Middle East and half of a partnership that once received little scrutiny from lawmakers. Last week, two senators introduced a resolution that would put restrictions on American arms sales to Saudi Arabia, which have expanded during the Obama administration.