Why would a government use cryptocurrencies though? You only need that if you have no single source of truth. For a government digital banking is enough and way cheaper. Unless by crypto you just mean cryptographically signed transaction logs or something.
JS does have features for editing the history, but it's a trade-off of not polluting the history too much while still letting the user navigate back and forth
Because a hash is by definition a one-way mapping, so then you'd have to keep a map of the reverse mapping hash -> state, which obviously gets impractical with state such as page index or search terms. Better just make two-way "compression" mapping