Rapid evolution drives increased function of a complex microbial community