Essex libraries saved after council U-turn in triumph for campaigners