The justices, in a 7-2 ruling, found the Republican-led states challenging to the health insurance law do not have the right to challenge it.