Court rejects Trump's border wall spend