The European Commission will on Wednesday announce guidelines allowing EU countries to restrict or exclude high-risk 5G vendors from core parts of their networks, a move likely to hurt China’s Huawei Technologies but which may not appease the United States.