How can I match phase voltage between a transformer primary and secondary?
With no load (or a very light load) on the secondary, the primary current will lag the primary voltage by 90 degrees. This is because the primary inductance dominates and, because it is an inductor, it will take a current that is largely 90 degrees lagging the applied voltage. Nothing strange happening here. This is transformer physics.

The output voltage will be in phase with the input voltage because the secondary induced voltage is proportional to the rate of change of primary magnetization current and, this therefore adds another 90 degrees to the current waveform.