On the planning problem for a class of Mean Field Games