City buys Story-Wright Building for new court