But his/her question was: "but why/how does money affect creation of laws in the US?"
The ruling allowed corporations to fund candidates in any candidate election. These candidates then have a better chance of winning (though certainly not guaranteed) through sources of funding that they hadn't had before. By influencing who gets elected, corporations have a better chance of influencing which bills are created and passed.
It's far more complex than that. Are you talking about political spending by campaigns or by independent groups? By PACs or by corporations/unions? Within 60 days of an election (or 30 days of a primary) or not? Etc.