China’s Foreign Ministry attacked the move, saying it would violate diplomatic agreements between China and the United States.