This is indeed the universal property of the product.
Consider the definition of the universal property of the product: $\DeclareMathOperator{Hom}{Hom}$
Definition: Consider a category $C$. Consider a set $J$, and suppose we have a family of objects $\{X_\alpha\}_{\alpha \in J}$ in $C$. Consider some object $P$ and some family of morphisms $\{p_\alpha \in \Hom_C(P, X_\alpha)\}_{\alpha \in J}$. Then $(P, p)$ is said to satisfy the universal property of the product with respect to $X$ if and only if for all objects $A$ and all families of morphisms $\{a_\alpha \in \Hom_C(A, X_\alpha)\}_{\alpha \in J}$, there is a unique map $a \in \Hom_C(A, P)$ such that for all $\alpha \in J$, $a_\alpha = p_\alpha \circ a$.
Consider the following two theorems:
Theorem: Consider a family of sets $\{X_\alpha\}_{\alpha \in J}$. Then $(\prod\limits_{\alpha \in J} X_\alpha, \{\pi_\alpha : (\prod\limits_{\beta \in J} X_\beta) \to X_\alpha\}_{\alpha \in J})$ satisfies the universal property of the product (in the category of sets). In other words, for all sets $A$ and all families of functions $\{a_\alpha : A \to X_\alpha\}_{\alpha \in J}$, there is a unique function $a : A \to \prod\limits_{\alpha \in J} X_\alpha$ such that for all $\alpha \in J$, $a_\alpha = \pi_\alpha \circ a$. $\square$
Theorem: Consider a family of measurable spaces $\{X_\alpha\}_{\alpha \in J}$. Then let $P$ be the product $\sigma$-algebra on $\prod\limits_{\alpha \in J} X_\alpha$; abusively write $\prod\limits_{\alpha \in J} X_\alpha = (\prod\limits_{\alpha \in J} X_\alpha, P)$. Then $\prod\limits_{\alpha \in J} X_\alpha$, together with the maps $\{\pi_\alpha\}_{\alpha \in J}$, satisfy the universal property of the product (in the category of measurable spaces). In other words, all the $\pi_\alpha$ are measurable maps, and furthermore, for all measure spaces $A$ and all families of measurable functions $\{a_\alpha : A \to X_\alpha\}_{\alpha \in J}$, there is a unique measurable function $a : A \to \prod\limits_{\alpha \in J} X_\alpha$ such that for all $\alpha \in J$, $a_\alpha = \pi_\alpha \circ a$. $\square$
Now, we can state the following theorem:
Thm. Let $P(\mathcal{A})$ if and only if the measure space $(\prod\limits_{\alpha \in H} A_\alpha, \mathcal{A})$, together with the maps $\{\pi_\alpha\}_{\alpha \in J}$, satisfy the universal property of the product.
Proof: Suppose the $\sigma$-algebra satisfies $P(\mathcal{A})$.
Note that since the identity map $1_{\prod\limits_{\alpha \in J} X_\alpha} : \prod\limits_{\alpha \in J} X_\alpha \to \prod\limits_{\alpha \in J} X_\alpha$ is measurable, each of the $\pi_\alpha$ is measurable, since $\pi_\alpha = \pi_\alpha \circ 1_{\prod\limits_{\alpha \in J} X_\alpha}$ is measurable by $P(\mathcal{A})$.
Suppose we have measurable functions $\{g_\alpha : W \to X_\alpha\}_{\alpha \in J}$. Then by the universal property of the product in the category of sets, there is a unique function $g : W \to X$ such that $\forall \alpha, \pi_\alpha \circ g = g_\alpha$. Then $g$ is measurable by $P(\mathcal{A})$. So the universal property of the product is satisfied.
Conversely, suppose the universal property of the product is satisfied. Suppose that for all $\alpha$, $\pi_\alpha \circ g$ is measurable. Consider the unique measurable function $h : W \to X$ such that for all $\alpha$, $\pi_\alpha \circ g = \pi_\alpha \circ h$. Therefore, $g = h$ by the universal property of the product of sets. Since $h$ is measurable and $h = g$, $g$ is measurable. Conversely, if $g$ is measurable, then for all $\alpha$, $\pi_\alpha \circ g$ is measurable, since the composition of measurable functions is measurable. $\square$
To finish the proof, note that the product $\sigma$-algebra $W$ clearly satisfies $P(W)$.
Now suppose we have two $\sigma$-algebras $W, Z$ on $\prod\limits_{\alpha \in J} X_\alpha$ which both satisfied $P(-)$, then consider the two measurable spaces $M = (\prod\limits_{\alpha \in J} X_\alpha, W)$ and $N = (\prod\limits_{\alpha \in J} X_\alpha, Z)$. Note that the identity maps $M \to N$ and $N \to M$ must both be measurable. Therefore, $W = Z$.