The executive order is to protect US networks from “foreign adversaries”, the White House says.