The ruling in the case of 27-year-old Aftab Khan was made Thursday and announced Friday.
Khan was one of three men arrested on immigration charges May 13 and suspected of supplying money to the primary suspect, Faisal Shahzad. But authorities say the men may not have known how the money would be used.
Khan's lawyer had asked the judge to allow his client to voluntarily leave the country. Federal authorities had asked the judge to keep Khan in the U.S.
Khan says he never heard of Shahzad before his arrest. Authorities say Khan had Shahzad's name in his cell phone.