The Supreme Court dealt a blow to public sector unions Monday, ruling that thousands of home health care workers in Illinois cannot be required to pay fees that help cover the union’s costs of collective bargaining.

In a 5-4 split along ideological lines, the justices said the practice violates the First Amendment rights of nonmembers who disagree with the positions that unions take.