The only thing silly was Trump’s proclamation attempting to limit asylum applications.
8 USC 1158 clearly permits individuals who are already within the US to apply for asylum without regard to their immigration status, so the judge was merely enforcing the rule of law. The one flouting the law was Trump.