A dispute over a proposed rock quarry in Loudon County has ended after a judge ruled in favor of the companies.