A federal judge dismissed a proposed privacy class action against Microsoft Corp. brought by a California-based attorney and a litigation consultant who claimed the tech company shared their client data without consent.