It was a prime holiday season for Amazon: The online retailer’s quarterly profit soared past $1 billion for the first time in its more than 20-year history as it sold more voice-activated gadgets, enlisted new Prime members and benefited from its recent purchase of Whole Foods.