Court ruling: Text messages are private