US leaders anticipated a walkover. Now they’re embroiled in a conflict that could hasten the end of US economic dominance