The judge said a group of labor unions didn't have legal standing to challenge the program, commonly described as a buyout