There isn't any better way for Tim Cook to spend that amount of money, full stop: Apple is getting it's ass kicked on the server side by Google, and they deserve it, because Apple doesn't have the talent and won't get it because, let's face it, who wants to work at Apple on server stuff that has any kind of skills?
Buying Joyent would change that overnight.