In Janus v. American Federation of State, County and Municipal Employees, the justices overturned an Illinois law that compelled public employees to subsidize unions regardless of their personal objections to the unions’ activism.