Congress "vests complete discretion" in the president to impose conditions on entry of foreigners to the United States, and that power is "largely immune from judicial control," according to the court filing.