I see it going against Obama either way the court rules.
If they approve the law the calls by Republicans to elect a Republican President and enough Senators to overturn the law will be very strong.
If they declare the law unconstitutional the Democrats will run on rewriting and correcting the law. This will be a fatal mistake for them.