"It" is what some grammarins call a dummy "it", while some others, especially non-native grammarins call it a formal subject as it is the subject of the clause. An English clause nearly always requires a subject. "That" is simply a conjunction in your sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.