Alphabet Inc.’s Google and Sonos Inc. again drew a federal judge’s ire in a closely watched California case over smart-speaker technologies, …