President Donald Trump says he will declare a national emergency to fund a planned border wall with Mexico.