Federal judge: Trump cannot use Pentagon funds to build border wall