BISMARCK, N.D. — The North Dakota Attorney General’s office has ruled that a sale of farmland between Campbell Farms of Grafton, North Dakota, and a trust associated with billionaire Bill Gates did not violate a state anti-corporate and trust farming law because of a “lease-back” deal.