How can I pay taxes on pretax 1099 distribution to make the money after tax?

Received a 1099 R from employer for a profit sharing plan - It's pretax money. I did not roll this into another pretax account - Instead I put it into a traditional IRA and then rolled it into a Roth IRA for backdoor. Realizing now I should have paid taxes on this 1099 distribution first before rolling. How can I correctly reflect it?