The Trump administration told a federal judge that restarting refugee admissions could take months.