A man who was wrongly deported to El Salvador by the Trump administration has been released from federal custody for the first time since March.