Joint scaling laws in functional and evolutionary categories in prokaryotic genomes