A federal judge on Tuesday ordered two men accused of posing as federal law enforcement released pending trial, ending a days-long detention hearing that unearthed details about an alleged ruse to befriend federal officers from an apartment complex in D.C.