A St. Louis County judge has ruled that a Missouri law allowing students to transfer from unaccredited districts to neighboring accredited ones for free is unconstitutional.