If the Taliban now represent the official .gov of Afghanistan it is not a crime for any company to provide supply and services.
Edit: I am not talking about US-American companies only.
Edit: I am not talking about US-American companies only.
Or do you think it's ok to supply North Korea?
Considering that the Taliban is/was a hostile party to an active US military operation, starting economic activities with them without explicit government approval is probably not a good idea.