Judge Leonard Shapiro made the decision after Onyango Obama, 69, testified that he had lived in the US for 50 years, been a hard worker, paid income tax and been arrested only once.
Asked about his family in the US yesterday, he said, "I do have a nephew." Asked to name the nephew, he said, "Barack Obama, he's the president of the United States."
Onyango Obama, the half brother of the president's late father, has lived in the US since the 1960s. He was ordered to leave the country in 1992, but remained.
Onyango Obama testified he came to the US from his native Kenya in 1963 and has not been back since. He called America the "land of opportunities."
More From This Section
His immigration status did not become public until his arrest for drunken driving in 2011 in Framingham, just west of Boston. After his arrest, he allegedly told police, "I think I will call the White House."
Asked about the exchange by a prosecutor yesterday, he said he might have said that, but he couldn't recall.
Margaret Wong, Obama's Cleveland-based immigration attorney, called him a "wonderful older gentleman."
"He has earned his privilege to stay in the United States. He has been here for 50 years," she said yesterday before the hearing.
The White House said it expected the case to be handled like any other immigration case.
In the drunken driving case, Obama admitted to sufficient facts, meaning he did not plead guilty but acknowledged prosecutors had enough evidence to convict him. A judge continued the case for one year without a finding, saying the charge would be dismissed if Obama did not get arrested again during that time.
In the president's memoir, "Dreams from My Father," he writes about his 1988 trip to Kenya and refers to an Uncle Omar, who matches Onyango Obama's background and has the same date of birth.
He is the second Obama family member to be found living illegally in the United States. His sister and the president's aunt, Zeituni Onyango, was granted asylum in 2010 after her first asylum request in 2002 was rejected and she was ordered deported in 2004.
She did not leave the country and continued to live in public housing in Boston. Her status was revealed just days before Obama was elected in November 2008. At the time, then-candidate Obama said he did not know his aunt was living here illegally and that he believes laws covering the situation should be followed.