Robert Barnes The Washington Post

WASHINGTON - Conservatives on the Supreme Court said Wednesday it was unconstitutional to allow public employee unions to require collective bargaining fees from workers who choose not to join the union, a major blow for the U.S. labor movement.

The court in a 5-to-4 decision overturned a 40-year-old precedent and said compelling such fees was a violation of workers' free speech rights. The rule could force the workers to give financial support to public policy positions they oppose, the court said.

"States and public-sector unions may no longer extract agency fees from nonconsenting employees," Justice Samuel Alito wrote for the majority. "This procedure violates the First Amendment and cannot continue."

He was joined by Chief Justice John Roberts and Justices Anthony Kennedy, Clarence Thomas and Neil Gorsuch.

Justice Elena Kagn wrote for the dissenting liberals: "The First Amendment was meant for better things. It was meant not to undermine but to protect democratic governance - including over the role of public-sector unions."

It was a devastating, if not unexpected, loss for public employee unions, the most vital component of organized labor and a major player in Democratic Party politics. It capped a yearslong effort by conservative legal activists to forbid states from authorizing the fees.

The decision came on the term's final day and was another example of a conservative majority refortified by President Donald Trump's selection of Gorsuch to fill the seat of the late Justice Antonin Scalia.

Challengers asked the court to overturn a 1977 decision, Abood v. Detroit Board of Education, that favored the unions. That ruling said states could allow public-employee unions to collect fees from nonmembers to cover the costs of workplace negotiations but not the union's political activities.

The unions say losing those fees would be a heavy blow because there is no incentive for workers to pay for collective-bargaining representation they could get for free. More than 20 states, including California, allow what the unions like to call "fair-share" fees.

It was the third time the Roberts court had considered overturning Abood. It stopped short the first time but made clear it was open to the argument.

It appeared the challenge would be successful the next time the issue went before the court, in January 2016. But Scalia died a month later, and the court announced that it had split 4 to 4 on the issue.

Gorsuch provided the fifth vote.

In the case argued in 2016, the Obama administration supported the unions and said the court should abide by its precedent. But the Trump administration argued in favor of challengers at oral arguments in February.

The lead plaintiff in the new case is Mark Janus, a child-support specialist at the Illinois Department of Healthcare and Family Services. The case is Janus v. AFSCME Council 31..