Federal court weighs legality of road plan