For the better part of a decade, some of Hawaii’s most powerful people huddled together at late-night parties in a cramped second-floor office where lobbyists and executives seeking government contracts lined up to drop cash and checks into a metal lockbox.

That was the entry fee for these extraordinary political fund-raisers. Inside the office, just a short walk from the State Capitol in downtown Honolulu, dozens of guests were served sushi prepared by professional chefs and unlimited beer and liquor.

At the end of the night, Wesley Yonamine, the host and a high-ranking airport official, would, together with the politicians, pop open the box and dole out campaign contributions according to a list of pledges obtained before each event.

As described by attendees, a typical party could bring in thousands of dollars in donations, giving some elected officials almost half their annual campaign haul in a single night.

It was not supposed to work this way. In 2005, in response to a series of scandals, Hawaii passed a law that barred government contractors from giving money to politicians. It was billed as one of the nation’s most ambitious efforts to end pay-to-play in contracting and designed to fundamentally change the political culture of a state steeped in corruption.

But legislators wrote a loophole into the law, effectively gutting it: The ban would apply only to donations from the actual corporate entities that got contracts, but not to their owners, employees or any related businesses.