The Senate is poised to pass legislation that would impose sanctions against Nicaraguan government officials and place conditions on international lending to the Central American country, which has been riven by violent protests since the spring.

The bipartisan legislation from Texas Republican Ted Cruz and New Jersey Democrat Robert Menendez has been added to the Senate calendar and is expected to pass by unanimous consent. The measure advanced out of the Foreign Relations Committee late last month.

The bill has been two years in the making, gradually picking up co-sponsors and growing lengthier along the way. Though the House has twice passed similar legislation, it was not until this spring’s crackdown on protesters by Nicaraguan President Daniel Ortega’s security forces that senators were moved to take definitive action.

Nicaraguans have taken to the streets to protest the leftist government’s plans to reduce welfare benefits. An estimated 300 people have been killed since April, and hundreds more have been imprisoned, according to human rights groups.

An initial 2016 bill from Cruz would have directed U.S. representatives at international financial institutions, including the World Bank, the Inter-American Development Bank and the International Monetary Fund, to use their leverage to block any Nicaraguan government lending requests until certain overhauls were implemented. The legislation was twice refiled in 2017 but with more government overhaul conditions added to it.