A federal judge in Detroit on Thursday ordered the Trump administration to turn over a memo drafted under former New York Mayor Rudy Giuliani Rudy GiulianiJuan Williams: Breaking down the debates Giuliani criticizes NYC leadership: 'They're killing this city' More than 160 executives critique de Blasio's leadership amid pandemic MORE's guidance outlining a plan to implement a travel ban without making it seem as if it was directly aimed at Muslims, Bloomberg reported.

According to a court filing by the Arab American Civil Rights League, President Trump Donald John TrumpBarr criticizes DOJ in speech declaring all agency power 'is invested in the attorney general' Military leaders asked about using heat ray on protesters outside White House: report Powell warns failure to reach COVID-19 deal could 'scar and damage' economy MORE ordered Giuliani during his presidential campaign to form a commission tasked with developing a "Muslim ban" that appeared legally sound.

As a presidential candidate, Trump stirred controversy by calling for a "total and complete shutdown of Muslims entering the United States until our country's representatives can figure out what the hell is going on."

ADVERTISEMENT

Amid backlash from that statement, Trump allegedly recruited Giuliani to "show [him] the right way to do it legally," according to the court filing. U.S. District Judge Victoria Roberts ordered the Trump administration to turn the filing over.

Justice Department attorneys are set to defend the president's revised travel ban executive order in a federal appeals court on Monday. The order sought to bar citizens of six Muslim-majority countries from travelling to the U.S.

A federal judge in Hawaii blocked the order in March, ruling that it amounted to a discriminatory ban on Muslims.