WASHINGTON—When it comes to upholding even a mild form of affirmative action, three big unions—the Teachers (AFT), the National Education Association (NEA), and the Service Employees say “yes”—and the Republican-named Supreme Court justices are apparently saying “no.