The shake-up will have far-reaching consequences for all political parties, upending the way they raise, spend and disclose campaign funds.