The Supreme Court on Monday appeared sharply divided in a case that could deal a potentially crippling blow to public sector unions