Simple Directionality Spread Trade Hedge
If the sum of the risks of the trade $t$ are zero (as in the case of the 2Y5Y10Y spread trade) that immediately gives a starting point from which to make a simple calculation for an adjustment.
For example if one assumes that the first principal component is the outright market driver and that the factor loadings represent a relative volatility of an instrument with the outright market, then
dividing the trade positions by the factor loadings will remove this component.
$$ \mathbf{\frac{t}{e_1} \cdot e_1} = \sum_i t_i = 0 $$
where the division is done element wise. In this case the adjustment $\mathbf{x}$ is the difference:
$$ \mathbf{x} = \mathbf{ \frac{t}{e_1} - t} \quad \implies (\mathbf{t + x}) = \mathbf{\frac{t}{e_1}}$$
Note that this is not the only way to make this calculation. It is not a unique solution; this method has the advantage of being relatively easy with a transparent assumption about its design.
More General Case
In the case that the risks of $\mathbf{t}$ do not sum to 0, or one wishes to hedge against more than one principal component we can consider other options.
A reasonable concept is to suggest that one seeks $\mathbf{x}$ such that it is as small as possible, and the change to $\mathbf{t}$ is therefore minimal in some sense.
One might also need to make a decision whether other instruments are allowed in $\mathbf{x}$, or if we must stick to 2Y 5Y or 10Y. Suppose we stick with only those 3 instruments for now and we formulate the optimisation problem with respect to the $l_2$ norm:
$$ \min_{\mathbf{x}} f(\mathbf{x}) = \frac{1}{2} \mathbf{x^T I x} $$
$$ \text{subject to} \quad \mathbf{e_1^T (t+x)} = 0 \quad \text{(1st PC hedged)}$$
This is a quadratic program with an equality constraint solvable via the KKT conditions:
$$ \nabla L(\mathbf{x},\lambda) = \begin{bmatrix}
\mathbf{I} & \mathbf{e_1} \\
\mathbf{e_1^T} & 0 \end{bmatrix} \begin{bmatrix}
\mathbf{x} \\
\lambda \end{bmatrix} + \begin{bmatrix}
\mathbf{0} \\
\mathbf{e_1^T t} \end{bmatrix} = 0
$$
With small rearranging, the formula for block matrix inversion and cancellation we are left with the result:
$$\begin{bmatrix}
\mathbf{x} \\
\lambda \end{bmatrix} = \begin{bmatrix}
\mathbf{I - e_1 e_1^T} & \mathbf{e_1}\\
\mathbf{e^T_1} & 1 \end{bmatrix}\begin{bmatrix}
\mathbf{0} \\
-\mathbf{e_1^T t} \end{bmatrix} $$
or $$ \mathbf{x} = -\mathbf{e_1 e_1^T t} \quad \implies \mathbf{(t+x)} = (\mathbf{I - e_1 e_1^T) t }$$
Degrees of Freedom
The above two methods will give different results but both are valid under their inherent assumptions. The general method can be used to neutralise more than one component, for example if you want to neutralise PC1 and PC2 (the optimisation constraints are extended). But doing so reduces the degrees of freedom in the solution. For example in a 3 instrument configuration if PC1 and PC2 are made neutral the only valid solution is for the trade to be a multiple of PC3.