Opponents defeat measure on reopening EU talks for first time since 2008 by margin of 52.8% to 47.2%, in blow to left-leaning government