Hong Kong authorities are set to formally withdraw an unpopular extradition bill that sparked months of chaotic protests in the semi-autonomous Chinese city.