A blow to the Trump wall plan, which prevents construction with military funds