Blues snatch win from Waratahs