A federal judge warned of “consequences” if the Trump administration violated court orders, but did not specify what those consequences would be or what it would take for the judge to enact them.