Alphabet's Google illegally dominated two markets for online advertising technology, according to a federal judge.