Senate lawmakers voted Thursday to repeal a historic set of rules aimed at protecting consumers’ online data from their own internet providers.

The rules, which prohibit providers from abusing the data they gather on their customers as they browse the web on cellphones and computers, had been approved last year over objections from Republicans who argued the regulations went too far.

Now a joint resolution from Sen. Jeff Flake, R-Ariz., seeks to roll back the Federal Communications Commission’s privacy rules, preventing them from going into effect and barring the FCC from ever enacting similar consumer protections.

U.S. senators voted 50-48 to approve Flake’s resolution. Sen. Susan Collins, R-Maine, voted for the bill and Sen. Angus King, a Maine independent, voted against it. The bill now heads to the House.

Industry groups welcomed the vote.

“Our industry remains committed to offering services that protect the privacy and security of the personal information of our customers,” said the Internet and Television Association, a trade group representing major cable providers. “We support this step towards reversing the FCC’s misguided approach and look forward to restoring a consistent approach to online privacy protection that consumers want and deserve.”

The FCC’s rules are being debated as internet providers – no longer satisfied with simply offering web access – race to become online advertising giants as large as Google and Facebook. To deliver consumers from one website to another, internet providers must see and understand which online destinations their customers wish to visit, whether that’s Netflix, WebMD or PornHub.

With that data, internet providers would like to sell targeted advertising or even share that information with third-party marketers. But the FCC’s regulations place certain limits on the type of data internet providers can share and under what circumstances. Under the rules, consumers may forbid their providers from sharing what the FCC deems “sensitive” information, such as app usage history and mobile location data.

Opponents of the regulation argue the FCC’s definition of sensitive information is far too broad and that it creates an imbalance between what’s expected of internet providers and what’s allowed for web companies such as Google. Separately from Congress, critics of the measure have petitioned the FCC to reconsider letting the rules go into effect, and the agency’s new Republican leadership has partly complied. In February, President Trump’s FCC chairman, Ajit Pai, put a hold on a slice of the rules that would have forced internet providers to better safeguard their customer data from hackers.

The congressional resolution could make any further action by the FCC to review the rules unnecessary; Flake’s measure aims to nullify the FCC’s privacy rules altogether. Republicans argue that even if the FCC’s power to make rules on internet privacy is curtailed, state attorneys general and the Federal Trade Commission could still hold internet providers accountable for future privacy abuses.

But Democrats said Wednesday night that preemptive rules are necessary to protect consumers before their information gets out against their will.

“The Federal Trade Commission does not have the rulemaking authority in data security, even though commissioners at the FTC have asked Congress for such authority in the past,” said Sen. Bill Nelson, Fla., the top Democrat on the Senate Commerce Committee.