A major ruling by the highest U.S. court that overruled a 41-year-old precedent on public-sector union dues.