I think its a reflection of the writers more than anything. Trek writers usually try to pull their ideas from current political and sociological issues. AI and genetic engineering (which I think is thinly veiled commentary on gender) are simply the current issues of our time. It is odd that they've chosen the federation to be the problem in the recent shows though. In older trek the federation was always the ones to stand up for the cause and the conflict came from worlds they visited. Of course, that's probably linked to the same idea as the AI/genetics, people are much more frustrated and disillusioned with western government these days and the writers are no doubt exploring that.
So there will probably be changes in the federations stance that are two steps beyond what we see happening in the world around us. Trek has always tried to lead people in a moral/philosophical direction.