They do! Gas taxes, bans of gas vehicles, required emission standards, etc.
of course, in my non-expert opinion, it would be preferable for the government to focus directly on the negative externalities rather than second or third order causes thereof.