@vickie007,
Now that I look at this, I think it is open to different interpretations:
I can see sullyfish6's interpretation of "task" being modified, but I also think you can see three predicate nominative clauses (a list of what "It" is for them):
1) "for us to be here dedicated to the great task remaining before us",
2) "that from these honored dead we take increassing devotion"
and
3) the rest starting with "that we here highly resolve..."
AND, within that last clause, where "we here highly resolve that", I think "these dead shall not have died in vain" is an objective subclause acting as a direct object.
Then, I think there are two ways to see the following two subclauses:
"that this nation, under God, shall have a new birth of freedom"
"that government of the people, by the people, for the people, shall not perish from the earth."
I think you can view both those subclauses as also being direct objects in a list with the first subclause (all three being things "we here highly resolve").
Or, you can view both of those last subclauses as modifying "not" in "shall not have died in vain" which would make those last two adverbial clauses after all.