Court orders journalist freed but stops short of quashing his conviction