President Donald Trump is given the go-ahead to use $2.5bn of Pentagon funds on the border wall.