SAN JUAN, Puerto Rico (AP) — Congress on Wednesday gave final passage to legislation that would shut down legal cockfights in U.S. territories including Puerto Rico and the U.S. Virgin Islands, ending an institution dating from the colonial era that generates millions of dollars each year.

Opponents of the measure approved by the House said it will have a devastating effect on the islands’ economies, noting that in Puerto Rico alone the cockfighting industry generates some $18 million a year and employs some 27,000 people.

“We’re all going crazy. Everybody is desperate,” said 86-year-old Angel Ortiz, who owns a cockfighting ring in the city of Bayamon. “There are so many people who make a living off of this.”

Puerto Rico Gov. Ricardo Rossello traveled to Washington to demand that the island be excluded, but he arrived too late. Legislators unexpectedly moved up the vote and approved the bill, which already passed the Senate.

Cockfighting in Puerto Rico was first officially recognized in 1770, but the practice was banned after the U.S. invaded the island in 1898. It wasn’t until 1933 that it was declared an official sport and became known as the “gentleman’s sport” because of its honor-based betting system.

In October 2010, Puerto Rico legislators voted in favor of a resolution to protect cockfights, stating they are an integral part of the island’s folklore and patrimony. Officials warn that the ban will lead to unemployment on an island already dealing with a 12-year recession.

Ashley Byrne, associate director with PETA, said in a phone interview that the bill was long overdue and will help protect animals.

“Money and tradition are never an excuse for cruelty,” she said. “We need to make sure that business is keeping pace with our ethics.”

She said most people would be appalled to learn that cockfighting is still legal in U.S. territories.

“In a modern society, forcing animals to fight for their lives is cruel,” she said. “Cockfighting is a horrific blood sport.”