The Stronghold builder's Guide is 3.0, but requires very little to convert to 3.5. Player's Handbook II has rules for organizations, though I can't really say I think they are playable (the actions that organizations can take are not well balanced and are extremely arbitrary. You can be a kingdom without the ability to mint money or wage war, for example, if you don't pick the proper action)