BEIJING—China brushed aside criticism by U.S. President Barack Obama over its refusal to blame its close ally North Korea for the sinking of a South Korean warship, as tensions between China and the U.S. over the incident escalated.