Mr. Roth gave a public summary of the report’s finding to members of Congress last November. But the full report, even though it redacts key pieces of information, provides a more detailed view of the Trump administration’s attempts to craft the travel ban without significant input from the department that would be charged with enforcing it.

That includes John F. Kelly, the Homeland Security secretary at the time, who could not say for sure that he was shown a draft of the executive order before it was signed. Mr. Kelly, now the White House chief of staff, told investigators that he believed he saw draft copies of the ban and discussed it with a member of Mr. Trump’s presidential transition team, as well as with Ms. Nielsen.

Joseph B. Maher, the department’s acting general counsel, told investigators that he saw a draft of the order an hour before it was signed and had no role in helping to craft it. The report issued on Friday said Mr. Kelly and Mr. Maher appear to be the only people at the department who saw the travel ban before it was signed.

The draft order was never sent to Customs and Border Protection, the agency that had to enforce the ban at airports. The inspector general’s office found that Kevin K. McAleenan, the acting commissioner of the customs agency, received the most details about the order’s contents from congressional staffers who “were better informed.”

The report also concluded that although the Justice Department’s Office of Legal Counsel reviewed the draft executive order, it failed to analyze the rights of legal permanent residents, who were left in limbo while customs officials scrambled to determine if they could re-enter the United States.