A federal judge said on Thursday that she planned to rule before Thanksgiving about whether the U.S. attorney handpicked by President Trump to prosecute two of his most prominent political opponents was lawfully appointed to her job — a question that could have serious consequences for the cases.