China defends ally Pakistan after Trump criticism