There is another thing to remember. Roberts is Catholic, and a great many bishops and priests are for socialized medicine. We went to a parish we don't normally attend, and the priest openly praised Roberts for giving “Equality and fairness to the poor”.
There was pressure for all sides.
All the justices who voted against it were also Catholics ... Kennedy, Alito, Scalia and Thomas. So religion had nothing to do with it.