Order to reinstate RAW officer upheld