A judge ruled in favor of the federal government on Tuesday in a land dispute between the Village of Hobart, the Oneida Nation, and the United States Department of the Interior.