President Donald Trump plans to sign a compromise border security measure Friday and then announce that he is using executive action, including declaring a national emergency, to spend $8 billion for border barriers, a White House official said.