The move could risk straining relations with U.S. tech companies and President Donald Trump.