Several labor unions had sued over Trump's plans, which had a midnight deadline for workers to apply to the program.