Japan passed a controversial anti-terror law on Thursday that sparked street protests and warnings from critics that it would stomp on citizens’ protection rights.

The Upper House of Parliament passed the conspiracy Bill early Thursday after political wrangling as the night progressed, beating the frail opposition’s no-confidence motion against Prime Minister Shinzo Abe’s Cabinet and a censure motion gone for Justice Minister Katsutoshi Kaneda.

The bill passed the more powerful lower house last month — Abe’s ruling coalition has an agreeable majority in both houses.

The new law allows investigators to charge an individual or association which conspires to take part in terrorism or different serious crimes.

Be that as it may, rights groups, Japan’s national bar association and numerous academics have opposed the bill, saying it is so wide it could be abused to permit wiretapping of guiltless citizens and undermine protection and freedom of expression guarantees in the constitution.

US surveillance whistleblower Edward Snowden and Joseph Cannataci, UN special rapporteur on the privilege to protection, have both scrutinized the law.

It has also sparked standard street protests across the nation.

The administration argues that the legislation is necessary to forestall terrorism in front of the 2020 Olympic Games in Tokyo.

Officials also say it is a prerequisite for executing an UN arrangement against transnational sorted out wrongdoing which Japan signed in 2000.

The bill was revised several times throughout the years as prior versions met with savage resistance and never endured parliament.

The latest bill lessened the quantity of focused crimes to some 270 offenses and narrowed the meaning of terrorist and criminal organizations.

Prior versions of the law focused on more than 600 crimes random to terrorism or wrongdoing syndicates.

Japan’s bar association contended, in any case, that the present law still gives police and investigators an excessive amount of space in choosing what constitutes a criminal association.

The overall population could be focused on conspiracy charges by means of checking telephone and online conversations, it warned.

Some Japanese media have compared the bill to the World War II-time “public request support law” under which standard individuals were arrested for political offenses, exercising work rights and against war activities.