Court orders online journalist’s release from psychiatric hospital