The Education Department will investigate the policies of five Virginia school districts that allow transgender students to use spaces matching their gender.