Hi -- "To be built" or "to be xxxx" is a passive construction. 'Built' is the past participle and in this case, the example implies that it MAY be built, but it's not definite. It's 'scheduled' to be built, or it's 'supposed to be built'. A future tense construction would be more definite. "The factory WILL be built." Generally, if you use future, there'd be a subject performing the action. "ABC company will build' (active) or "The first factory will be built by ABC company." (passive). This kind of construction can be very confusing, even for native speakers.
In your second sentence, 'to be built' is also clarifying that you're talking about the factories already mentioned. Of the three factories to be built (that we just mentioned), the first one will be the largest.'