Judge overturns decision barring journalist from leaving country