The Senate muscled its way into President Barack Obama’s talks to curb Iran’s nuclear program, overwhelmingly backing legislation Thursday that would let Congress review and possibly reject any final deal with Tehran.

The vote was 98-1 for the bipartisan bill that would give Congress a say on what could be a historic accord that the United States and five other nations are trying to finalize with Iran. Under the agreement, Iran would roll back its nuclear program in exchange for relief from crippling economy penalties.

The lone “no” vote came from freshman Sen. Tom Cotton, R-Ark., who wants the administration to submit any agreement to the Senate as a treaty. Under the Constitution, that would require approval of two-thirds of the Senate.

The House is expected to vote next week on the measure.

House Speaker John Boehner said in a statement moments after the vote that the “goal is to stop a bad agreement that could pave the way to a nuclear-armed Iran, set off a regional nuclear arms race, and strengthen and legitimize the government of Iran.”

White House spokesman Eric Shultz said Obama would sign the bill in its current form. But the spokesman added that Obama has made it clear that if amendments are added by the House “that would endanger a deal coming together that prevented Iran from obtaining a nuclear weapon, that we’d oppose it.”

Even if Congress rejects his final nuclear deal with Tehran, Obama could use his executive pen to offer a hefty portion of sanctions relief on his own. He could take unilateral actions that — when coupled with European and U.N. sanctions relief — would allow a deal to be implemented.

The U.S. and other nations negotiating with Tehran have long suspected that Iran’s nuclear program is secretly aimed at atomic weapons capability. Tehran insists the program is entirely devoted to civilian purposes.

The talks resume next week in Vienna, with a target date of June 30 for a final agreement.

Senate Majority Leader Mitch McConnell, R-Ky., said the bill “offers the best chance for our constituents through the Congress they elect to weigh in on the White House negotiations with Iran.”

Added Sen. Bob Corker, R-Tenn., chairman of the Foreign Relations Committee: “No bill. No review.”

The legislation would bar Obama from waiving congressionally imposed sanctions for at least 30 days while lawmakers examine any final deal. The bill would stipulate that if senators disapprove of the deal, Obama would lose his current power to waive certain of the penalties.

The bill would require Congress to pass a resolution of disapproval to reject the deal, an action that Obama almost certainly would veto. Congress then would have to muster votes from two-thirds of each chamber to override the veto.

In the House, about 150 Democrats — enough to sustain a veto — have written to the president to express their strong support for the nuclear negotiations with Iran.