Middle powers need to tread skilfully around the biggest blocs, writes Yvette Cooper