A bill that would close a campaign finance loophole allowing unlimited funds into a campaign is headed to the governor’s desk.