A federal judge in Mississippi has admitted that his staff used artificial intelligence to draft a flawed court order after months of speculation and an inquiry from a U.S. senator.