As Canadian lawmakers took up legislation on Wednesday that would bar businesses from dealing with foreigners who have committed human rights abuses, a nonprofit group called the Russian Congress of Canada pushed hard against the measure.

The lawmakers say the effort was part of a broader lobbying campaign orchestrated by Russia against such laws, including one in the United States. Canadian human rights advocates say they were also singled out.

The pro-Russia group denies any connection to the Kremlin, but lawmakers say the push fits a pattern of Moscow-backed interference in the West. And they say that the lobbying campaign, which began in 2014 and grew with attacks last spring on Canada’s foreign affairs minister, Chrystia Freeland, highlights the dangers of Russian meddling in Canada.

Nonetheless, the bill passed unanimously in Parliament on Wednesday evening. It allows Canada to sanction, freeze assets or deny entry to foreigners from any country that has violated human rights or engaged in corruption.