Phylogenomics Reveals Convergent Evolution of Lifestyles in Close Relatives of Animals and Fungi