McCain wanted the bill passed no matter what. That is why he gave in on the hard money and why the GOP insisted on clauses that allow the bill to be contested well in advance of it being effective. This may well be the only bill that was passed in such a way that it can be tested in the courts before its even effective.
So, yes in many ways the bill was written so accomadate a quick and effective SC challenge.
Yep, as I suspected, McCain is the most brilliant conservative mind in history! He wrote the entire bill and worked hard to pass it through Congress, knowing all the while SCOTUS would strike it down. That way it'll be off the radar screen and the GOP can concentrate on getting things done. He's a chessmaster, that's for sure.