BOSTON — The cost set by the Green Line Extension contractor for the first three stations is more than double the amount state and federal transit officials recently estimated, calling into question the full price tag of the new trolley line and whether the state can afford to build it.