Judge orders partial halt of Trump’s border wall construction, blocks $1bn in military funds