WASHINGTON (AP) — The Senate approved a short-term renewal until April 30 of a controversial surveillance program used by U.S. spy agencies, following a chaotic, post-midnight scramble in the House to keep the authority from expiring in a matter of days.

The measure cleared the Senate by voice vote Friday, without a formal roll call — the same way it was approved hours earlier in the House — as Congress raced to meet a Monday deadline and send it to President Donald Trump for his signature.

Senate Majority Leader John Thune gave a nod to the political difficulty ahead as they assess options when the temporary extension expires at the end of the month. “We’ll be preparing accordingly,” the South Dakota Republican said.

It’s all setting up another showdown, in a matter of weeks, as Congress dives into the surveillance tool that pits Americans’ privacy rights against what U.S. officials have long said is a uniquely effective program for the security of the country.

The stopgap came after House Republican leaders hurriedly unveiled an ambitious five-year extension late Thursday with revisions to appease skeptics of the surveillance program — a sharp pivot from the clean 18-month renewal Trump and GOP leaders had pushed all week. But both those Republican bills collapsed, failing to advance, forcing leaders to pivot.

Early Friday, Sen. Ron Wyden, D-Ore., a longtime critic of the surveillance system, stalled further action in the Senate as he pressed for changes.

Wyden said he has never seen this level of support on both sides of the political aisle — and in both chambers of Congress — for real revisions to the surveillance tool, although he did not stand in the way of a short-term extension, for now.

“It’s not making a choice between security and liberty. That’s garbage,” Wyden said. “We’re going to show that the two aren’t mutually exclusive.”

Chaotic, late-night House votes end in failure

Trump, House Speaker Mike Johnson and the White House had spent the week trying to line up support for an 18-month renewal of the spy tool with no changes. But holdouts held firm, forcing a late-night scramble.

Source: WPLG