Widespread protest and souring public opinion has failed to prevent Canada’s ruling Conservative Party from pushing forward with sweeping anti-terror legislation which a battery of legal scholars, civil liberties groups, opposition politicians and pundits of every persuasion say will replace the country’s healthy democracy with a creeping police state.

Prime Minister Stephen Harper is looking forward to an easy victory on Tuesday when the House of Commons votes in its final debate on the bill, known as C-51. But lingering public anger over the legislation suggests that his success in dividing his parliamentary opposition may well work against him when Canadians go to the polls for a national election this fall.

No legislation in memory has united such a diverse array of prominent opponents as the proposed legislation, which the Globe and Mail newspaper denounced as a a plan to create a “secret police force”.

The campaign to stop Bill C-51 grew to include virtually every civil-rights group, law professor, retired judge, author, editorialist and public intellectual in Canada.

“The scale of information sharing being proposed is unprecedented, the scope of the new powers conferred by the act is excessive, particularly as these powers affect ordinary Canadians, and the safeguards protecting against unreasonable loss of privacy are seriously deficient,” declared Daniel Therrien, Privacy Commisioner of Canada, in a typical statement. “All Canadians would be caught in this web.”

Stephen Harper is attacking our rights & freedoms. Please do the right thing and #VoteAgainstC51, @toadamvaughan. #cdnpoli — Margaret E. Atwood (@MargaretAtwood) April 17, 2015

“Stephen Harper is attacking our rights & freedoms,” author Margaret Atwood tweeted, urging her local Member of Parliament to “do the right thing and #VoteAgainstC51”.

Defending the bill, Public Safety Minister Steven Blaney lashed out against “key misconceptions” promoted by “so-called experts”, especially what he called the “completely false, and frankly ridiculous” claim that legitimate protest could be targeted as terrorism.

Blaney and Justice Minister Peter MacKay have described the bill as a “reasonable and proportionate” response to the threat of “jihadi terrorism.” The prime minister has derided its opponents as being out of touch with Canadian values.

Hundreds of thousands of ordinary Canadians signed petitions urging the bill be scrapped and took to the streets in a national day of protest last month.

Critics of the legislation say the imminent law gives Canadian spies sweeping new powers to investigate and disrupt broadly defined threats to public safety, with language that makes no distinction between terrorist plots and legitimate political protests and demonstrations. At the same time, it neglects to provide any increased oversight of the country’s vastly empowered chief spy agency, the Canadian Security and Intelligence Service.

“This is not an ordinary bill and this is not about politics anymore,” Green Party leader Elizabeth May told the House of Commons last week. “This is about the soul of the country and a question of whether we understand what Canada stands for – for ourselves and what we represent around the world.”

Thomas Mulcair, leader of the opposition New Democratic Party, denounced the bill as “sweeping, dangerous, vague and ineffective”. But much the same could be said of parliamentary efforts to stop Harper. After promising to support the bill in deference to its apparent popularity, Liberal Party leader Justin Trudeau was easily rebuffed in his call for amendments.

Introduced in the wake of two lone-wolf terrorist attacks, one of which killed sentry Nathan Cirillo at the Canadian National War Memorial in Ottawa, the bill gained widespread initial support among ordinary Canadians. But in the weeks of criticism that followed, the polls turned and a majority began to express opposition.

It remains to be seen whether their anger will survive to make a difference in the general election this October.