Consider the space $C$ and maps $f_A: A \to C$ and $f_B: B \to C$. Assume that there exists a unique continuous function $G: C \to T$ such that $g_A= G \circ f_A$ and $g_B= G \circ f_B$ for any space T and pair of continuous functions $g_A: A \to T$ and $g_B: B \to T$. I wish to show that $C$ and $A \sqcup B$ are homeomorphic.
My idea is to leverage the hypothesis after taking $T = A \sqcup B$. Ultimately, I would like to identify a unique continuous function $F: A \sqcup B \to C$. However, I am unsure of how to proceed.
When proving a similar result for $A \times B$, I leveraged the fact that the projection maps are continuous. I do not know if something similar can be applied here.
In the comments you point out that you are not assuming that $f_A$ and $f_B$ are continuous (something both I and Mark Saving assumed in our responses).
If you do not assume they are continuous, then in general the conclusion you want is false.
We know that any map $f\colon X\to Y$ between topological spaces in which $X$ has the discrete topology is continuous. And a one-to-one map $g\colon X\to Y$ in which $Y$ has the discrete topology is continuous if and only if $X$ has the discrete topology as well.
Thus, if we endow the disjoint union $A\amalg B$ of the underlying sets of $A$ and $B$ with the discrete topology, and let $f_A$ and $f_B$ be the canonical set-theoretic embeddings, then these maps are not continuous unless both $A$ and $B$ have themselves the discrete topology on them.
However, it is definitely the case that given any topological space $T$ and any continuous maps $g_A\colon A\to T$ and $g_B\colon B\to T$, there exists a unique continuous function $G\colon A\amalg B\to T$ such that $g_A=G\circ f_A$ and $g_B=G\circ f_B$, because there is a unique set-theoretic function with those properties, and since $A\amalg B$ has the discrete topology then any function with domain $A\amalg B$ is continuous, in particular $G$.
But $A\amalg B$ is homeomorphic to $A\sqcup B$ if and only if $A$ and $B$ both have the discrete topology (and in that case, we do have that $f_A$ and $f_B$ are continuous). So the conclusion you want need not hold if $f_A$ and $f_B$ are not assumed to be continuous.
You can construct other examples by simly taking any topology on $A\sqcup B$ which his strictly finer than the disjoint topology.
So we must assume that $f_A$ and $f_B$ are continuous for the desired conclusion to hold.
Under that assumption...
This is a standard argument for objects defined via universal properties.
Presumably you know that you have continuous maps $\iota_A\colon A\to A\sqcup B$ and $\iota_B\colon B\to A\sqcup B$, the canonical inclusions, which have the property that for any topological space $X$ and any continuous maps $g_A\colon A\to X$ and $g_B\colon B\to X$, you have a unique continuous map $G\colon A\sqcup B\to X$ such that $g_A=G\circ \iota_A$ and $g_B=G\circ \iota_B$; namely, $G$ is given by defining it as $g_A$ on $A$ and as $g_B$ on $B$, once you identify $A$ and $B$ as subsets of $A\sqcup B$...
So then, $A\sqcup B$ has the same universal property as your putative $C$. So this sets up the argument to show they are isomorphic/homeomorphic:
Because we have continuous embeddings $\iota_A\colon A\to $ and $\iota_B\colon B\to T$, there exists a unique continuous function $\Phi\colon C\to A\sqcup B$ such that $\iota_A=\Phi\circ f_A$ and $\iota_B=\Phi \circ f_B$.
Because we have continuous embedding $f_A$ and $f_B$ into $C$, the property of $A\sqcup B$ yields a unique continuous $\Psi\colon A\sqcup B\to C$ such that $f_A=\Psi\circ \iota_A$ and $f_B=\Psi\circ\iota_B$.
Now consider the maps $f_A$ and $f_B$ into $C$. We should have a unique continuous function $\Theta\colon C\to C$ such that $f_A=\Theta\circ f_A$ and $f_B=\Theta\circ f_B$. Since $\mathrm{Id}_C$ certainly fits the bill, then $\Theta=\mathrm{Id}_C$ is the only map what will "work". However, consider now what happens with $\Psi\circ\Phi$. We have: $$\begin{align*} (\Psi\circ\Phi)\circ f_A &= \Psi\circ(\Phi\circ f_A) = \Psi\circ\iota_A = f_A\\ (\Psi\circ\Phi)\circ f_B &= \Psi\circ(\Phi\circ f_B) = \Psi\circ\iota_B = f_B. \end{align*}$$ So $\Psi\circ\Phi$ also "works". By the uniqueness clause, we conclude that $\Psi\circ\Phi = \Theta = \mathrm{Id}_C$.
Now try to do something similar to show that $\Phi\circ\Psi=\mathrm{Id}_{A\sqcup B}$ and conclude that you have homeomorphisms.