Judge orders suspended officer to be reinstated with back pay