earmarked tax; special-purpose tax
A tax whose revenue is legally designated for a specific purpose, such as road maintenance or environmental projects.
The gasoline tax is an earmarked tax for road maintenance.
This special-purpose tax is allocated to the education budget.