A federal judge in Texas has threatened to hold Homeland Security Secretary Jeh Johnson and other top immigration enforcement officials in contempt of court for not fixing problems that led to work permits being mistakenly awarded under President Barack Obama's executive immigration action after the judge had put the plan on hold.