Brussels is set to use funds normally reserved for building roads in poorer EU states to boost weapons production across the bloc.