Judge rejects reinstatement of Shelton cop fired over Facebook posts