Thanks, in part, to the loosening of campaign finance laws in 2010, outside groups such as Americans for Prosperity and the American Energy Alliance—many of them part of the Koch billionaire family network—gained outsize influence in the Republican Party during the Obama years.