Google operates illegal monopolies over two separate markets related to digital advertising technology, a federal judge ruled on Thursday.