0i think the first " that " is just a connector. the second " that " is referring back to the previous situation. " as a result of " is a prepositional phrase.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.