My question is what part of the obtained energy goes into the
temperature build-up, and what part goes in reducing the pressure?
If the process is adiabatic and the piston goes down the volume decreases but the pressure increases. The pressure does not decrease. This is called an adiabatic compression. If the process is carried out very slowly and without friction it can be considered reversible. The equation for the process is then
$$Pv^{ϒ}=C$$
where $C$ is a constant and ϒ is the ratio $\frac{C_p}{C_v}$. The initial and final states are then related by
$$P_{f}v_{f}^{ϒ}=P_{i}v_{i}^{ϒ}$$
So you see if the volume goes down the pressure goes up.
As has already been pointed out, since the process is adiabatic we have $Q=0$ and therefore
$$\Delta U=-W$$
In this version of the first law $W$ is negative when work is done on the gas (compression), to the change in internal energy is positive.
And for an ideal gas, any process, the change in internal energy depends only on temperature according to
$$\Delta U=mC_{v}\Delta T$$
All the energy transferred to the gas due to external work goes into increasing its temperature. But the temperature of an ideal gas is a measure of the average kinetic energy of the molecules so the average kinetic energy increases. This causes the molecules to collide with the walls of the container at higher average velocities. That in turn causes the pressure on the walls of the container to increase as well.
Bottom line: The pressure increase is a consequence of the energy that caused the temperature increase. It is not a separate part of that energy.
Update:
This will respond to your follow up question.
How a gas will respond to a volume reduction, that is a compression process will depend on the type of gas and how the compression process is carried out. The process in your example is an ideal gas adiabatic compression process and I gave you the equation for that process. The actual increase in temperature and pressure depends on the actual gas, since different gases have different specific heats that are in the equations I gave you.
A different ideal gas compression process is an isothermal process in which there is a volume reduction and pressure increase but no temperature change. The equation for that process is
$$pv=Constant $$
Which is different than the adiabatic process.
In summary, in order to know how a volume reduction affects temperature and pressure you need to know the specific gas properties and the specific equation(s) that governs the compression process.
Hope this helps.