The United States Supreme Court on Tuesday agreed to hear a challenge to the way public-sector unions finance their operations.…