A federal court has put a hold on efforts by the Trump administration to keep illegal immigrants from getting commercial driver's licenses to drive a semitrailer truck or a bus.